Advertisement
Guest User

Untitled

a guest
Nov 5th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement