Sunday, August 27, 2017

Sending email from PHP

Sending email from PHP



This explains how to send emails from, tested for WampServer Version 2.0 on Windows XP:

1. Create email.php file
2. Add following code in emai.php file and run in browser

example@example.comspan style="font-family:arial;font-size:85%;">;
$subject = "PHP Email Script Example!";
$body = "Hellow, How are you? Testing PHP email script - Okey !";

if (mail($to, $subject, $body))
{ echo(" Message successfully sent! "); }

else { echo(" Message delivery failed...");
}

?>

download file now

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.