Created
April 22, 2014 12:18
-
-
Save walterdavis/11176696 to your computer and use it in GitHub Desktop.
PHP mail sending test script
This file contains hidden or 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 | |
| $sender_1 = 'a_real_user@your_server.com'; | |
| $sender_2 = 'a_real_user@a_different_server.com'; | |
| $recipient = 'you@your_email_server.com'; | |
| print 'Sending mail...'; | |
| mail($recipient, 'A test message', 'Sent by a local user', "From: $sender_1", "-f$sender_1"); | |
| mail($recipient, 'A test message', 'Sent by a remote user', "From: $sender_2", "-f$sender_2"); | |
| print 'Done!'; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment