php send mail code not working
- by anand
php
$to = "jijodasgupta@gmail.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("pMessage successfully sent!/p");
} else {
echo("pMessage delivery failed.../p");
}
wrote a basic php sendmail code that but it gives me the following error
Warning: mail() [function.mail]: "sendmail_from" not set…