Wednesday, January 23, 2008

PHP email

vi mail.php

add the following in that file


// The message
$message = "Line 1\nLine 2\nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);

// Send
mail('you@youremail.com', 'My Subject', $message);
?>

save and quit

No comments: