<?php
$to = '[email protected]';
$subject = $subject ;
$message = $message ;
$header = "From: [email protected]\r\n";
$header.= "MIME-Version: 1.0\r\n";
$header.= "Content-Type: text/plain; charset=utf-8\r\n";
$header.= "X-Priority: 1\r\n";
mail($to, $subject, $message, $header);
?>
Hi,
I want a step by step tutorial or guidance to send email in php.I am trying to send email in php using mail() but i am unable to send email.
I am using script like below :-
<?php
mail(“[email protected]”,”subject”,”message”);
?>
Hi,
you are not able to send email in php because you are not sending headers along with email.
Please try with below simple tutorial to send email in php.