Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created September 3, 2015 00:15
Show Gist options
  • Save kaworu/204ee8105b48185cec20 to your computer and use it in GitHub Desktop.
Save kaworu/204ee8105b48185cec20 to your computer and use it in GitHub Desktop.
<?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