Created
February 26, 2015 13:21
-
-
Save roboter/fb626fd8105b8360e061 to your computer and use it in GitHub Desktop.
Test mail settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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