helo......
i want to send email automatically.. but it doesn't work...
and display msg not sent..
this is my code....plz check if there any error.......
i'm a new in php... plz help me...
i want to send email automatically.. but it doesn't work...
and display msg not sent..
this is my code....plz check if there any error.......
i'm a new in php... plz help me...
Code:
$recipent = "smile@example.com";
$subject = "attention";
$fname = "farah";
$email = "wfarah@example.com";
$msg = "fail";
$body = "Sender: " . $fname . "\n\nEmail: " . $email . "\n\nMessage:\n\n" . $msg;
if (@mail($recipent, $subject, $body)) { echo "msg sent"; }
else { echo "msg not sent"; }
Comment