Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $to = "somedude@example.com";
- $subject = "Unexpected Error!";
- $error_message = "There's been a problem with all the things!\n
- Everything is down and people are in danger.\n
- Only you can save the world so put down the fritos and dust off your super suit!\n";
- $headers = array();
- $headers[] = "MIME-Version: 1.0";
- $headers[] = "Content-type: text/plain; charset=iso-8859-1";
- $headers[] = "From: My alter-ego <hero@example.com>";
- $headers[] = "Reply-To: myself <hero@example.com>";
- $headers[] = "Subject: {$subject}";
- $headers[] = "X-Mailer: PHP/".phpversion();
- mail($to, $subject, $error_message, implode("\r\n", $headers));
- echo "email was sent!";
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement