Created
August 25, 2019 19:48
-
-
Save walterdavis/c2a454a5bbdf3a90564ca52c351705b9 to your computer and use it in GitHub Desktop.
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 | |
header('Content-type: text/plain'); | |
error_reporting(E_ALL); | |
ini_set('display_errors', true); | |
$from = '[email protected]'; | |
$to = '[email protected]'; | |
if(mail($to, 'test message from PHP', phpinfo(), array("From: $from"), "-f$from")){ | |
print('Mail sent successfully'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment