Skip to content

Instantly share code, notes, and snippets.

@rajohns08
Last active August 29, 2015 14:08
Show Gist options
  • Save rajohns08/0c7a5a41f6a4bf353fca to your computer and use it in GitHub Desktop.
Save rajohns08/0c7a5a41f6a4bf353fca to your computer and use it in GitHub Desktop.
$email = "whoYouWantToEmail@gmail.com";
// prepare headers for mail() function
$headers = 'From: yourserveremail@yourdomain.net' . "\r\n" .
'Reply-To: yourserveremail@yourdomain.net' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
// use the php mail() function to send
mail($email, "Subject Line", "message body", $headers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment