Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 5th, 2012  |  syntax: None  |  size: 0.29 KB  |  views: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. $to = "exampleID@example.com"; // i replace examples with my actual mail
  3. $subject = "Run through Cron";
  4. $message = "Hello! This is a simple email message.";
  5.  
  6. try
  7. {
  8.   mail($to,$subject,$message);
  9. }
  10. catch (Exception)
  11. {
  12.   echo 'Error sending';
  13.   die;
  14. }
  15.  
  16. echo "Mail Sent";
  17. ?>
clone this paste RAW Paste Data