Created
June 14, 2012 00:04
-
-
Save flexgrip/2927236 to your computer and use it in GitHub Desktop.
simple mail script
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 | |
$to = "jmayer@mayernetworks.com"; | |
$subject = "Test mail"; | |
$message = "Hello! This is a simple email message."; | |
$from = "someonelse@example.com"; | |
$headers = "From:" . $from; | |
if(mail($to,$subject,$message,$headers)) { | |
echo "Mail Sent."; | |
} else { | |
echo "Mail not sent."; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment