Skip to content

Instantly share code, notes, and snippets.

@inogo
Created August 27, 2014 18:15
Show Gist options
  • Save inogo/607bfd32586abb11fdf2 to your computer and use it in GitHub Desktop.
Save inogo/607bfd32586abb11fdf2 to your computer and use it in GitHub Desktop.
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "[email protected]";
$to = "[email protected]";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
if (mail($to, $subject, $message, $headers)) {
echo "OK";
} else {
echo "Err";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment