SHARE
TWEET

Untitled

a guest Nov 5th, 2012 21 Never
  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. ?>
RAW Paste Data
Top