Computer Programming
Wednesday, May 23, 2007
Example for php sending email
<?
$to = "
johndate@computer.com
";
$subject = "Hello!";
$body = "John,\n\nHow are you doing?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>
Message delivery failed...</p>
");
}
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment