Skip to content

Instantly share code, notes, and snippets.

@vladimirlukyanov
Created May 21, 2015 23:44
Show Gist options
  • Save vladimirlukyanov/6500c12fbc296e3c0126 to your computer and use it in GitHub Desktop.
Save vladimirlukyanov/6500c12fbc296e3c0126 to your computer and use it in GitHub Desktop.
PHP email testing | Test sendmail postfix PHP
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "__email__";
$to = "__email__";
$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