Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. $to = "andresdroid@gmail.com";
  3. $subject = "Testing";
  4. $message = 'Test';
  5. $from = "test <test@test.net>";
  6. $reply = "test@test.net";
  7.  
  8. $headers  = "From: $from\r\n";
  9. $headers  = "Reply-To: $reply\r\n";
  10. $headers  = "Return-Path: $reply\r\n";
  11. $headers  = "Envelope-from: $reply\r\n";
  12. $headers .= "MIME-Version: 1.0\r\n";
  13. $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
  14. mail($to,$subject,$message,$headers,"-f $reply");
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement