Web Development Tips and Tricks

Web Development Tips and Tricks

Monday, March 28, 2011

email in php

< ? php
$to = "recipient@example.com";
$subject = "Your Message Subject";
$body = "Message";
if (mail($to, $subject, $body)) {
echo("

Message sent successfully

");
} else {
echo("

Failed

");
}
?>

No comments:

Post a Comment