Created
September 8, 2011 09:04
-
-
Save johnathan-sewell/1202982 to your computer and use it in GitHub Desktop.
Send an email in PHP
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 | |
$to ="[email protected]"; | |
$subject = "PHP Mail Test"; | |
$message = "This is a PHP mail test"; | |
$headers = 'From: [email protected]' . "\r\n" . | |
'Reply-To: [email protected]' . "\r\n" . | |
'X-Mailer: PHP/' . phpversion(); | |
$success = mail($to ,$subject ,$message, $headers); | |
print("mail sending result:" + $success); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment