Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 1);
  3. error_reporting(E_ALL);
  4.  
  5. $from = "from-email@mail.com";
  6. $to = "to-email@mail.com";
  7. $subject = "PHP Mail Test script";
  8. $message = "This is a test to check the PHP Mail functionality";
  9. $headers = "From:" . $from;
  10. mail($to, $subject, $message, $headers, $from);
  11.  
  12. echo "Test email sent";
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement