Guest User

Untitled

a guest
Feb 12th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. $headers = 'MIME-Version: 1.0' . "n";
  2. $headers .= "Content-type: text/html; charset=utf-8" . "n";
  3. $headers .= "Return-Path: <adminemail@yahoo.com>"."n";
  4. $headers .= "Errors-To: <adminemail@yahoo.com>"."n";
  5. // Additional headers
  6. $headers .= "To: email1@yahoo.com <adminemail@yahoo.com>" . "n";
  7. $headers .= "From: adminemail@yahoo.com <adminemail@yahoo.com>" . "n";
  8. // Mail it
  9. mail('email1@yahoo.com', 'test', 'salam', $headers, "f");
  10.  
  11. $headers = 'From: webmaster@example.com' . 'rn' .
  12. 'Reply-To: webmaster@example.com’ . 'rn' .
  13. 'Return-Path: webmaster@example.com’ . 'rn' .
  14.  
  15. mail($to, $subject, $message, $headers, "-femail@wherever.com");
  16.  
  17. $headers = "MIME-Version: 1.0rn".
  18. "Content-type: text/html; charset=utf-8rn".
  19. "Return-Path: adminemail@yahoo.comrn";
  20. mail ("email1@yahoo.com","test","salam",$headers,"f");
  21.  
  22. $headers = '';
  23. $headers .= "Reply-To: " . 'yourname@mydomain.com' . "n";
  24.  
  25. mail('test@somedomain.com', 'Subject: test', 'this is a test', $headers);
Add Comment
Please, Sign In to add comment