How to send email using php script?
I want to send email using php website can anyone tell me How to send email using php script?
July 31, 2010 | Filed Under Scripts FAQs
Comments
One Response to “How to send email using php script?”
Powered by Yahoo! Answers
You can use mail function to send email using php , hope following code will help you
<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed…</p>");
}
?>