Skip to content

Instantly share code, notes, and snippets.

@blakethepatton
Created September 28, 2016 19:35
Show Gist options
  • Save blakethepatton/ac835c8f69158d990c2f0ceeb9841745 to your computer and use it in GitHub Desktop.
Save blakethepatton/ac835c8f69158d990c2f0ceeb9841745 to your computer and use it in GitHub Desktop.
<?PHP
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "emailtest@YOURDOMAIN";
$to = "YOUREMAILADDRESS";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment