Created
September 3, 2015 00:15
-
-
Save kaworu/204ee8105b48185cec20 to your computer and use it in GitHub Desktop.
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 = $_GET['to']; | |
$subject = 'the subject'; | |
$message = 'hello'; | |
$headers = 'From: [email protected]' . "\r\n" . | |
'Reply-To: [email protected]' . "\r\n" . | |
'X-Mailer: PHP/' . phpversion(); | |
if (!file_exists('/bin/femail')) { | |
echo "WHERE IS FEMAIL!!"; | |
die(); | |
} | |
echo "To: $to\n"; | |
if (mail($to, $subject, $message)) | |
echo "accepted\n"; | |
else | |
echo "mail() failed :(\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment