Advertisement
dwhitzzz

SendMailCustomFrom

Mar 18th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2. $to = "somebody@example.com";
  3. $subject = "My subject";
  4. $txt = "Hello world!";
  5. $headers = "From: webmaster@example.com\r\n";
  6.  
  7. mail($to,$subject,$txt,$headers);
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement