Guest User

Untitled

a guest
Sep 5th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. exim4 vs gmail FROM field
  2. gmail_login:
  3. driver = plaintext
  4. public_name = LOGIN
  5. client_send = : myaccount1@gmail.com : mypassword
  6.  
  7. $to = 'myaccount3@gmail.com';
  8. $subject = 'the subject';
  9. $message = 'hello';
  10. $headers = 'From: myaccount2@gmail.com' . "rn" .
  11. 'Reply-To: myaccount2@gmail.com' . "rn" .
  12. 'X-Mailer: PHP/' . phpversion();
  13.  
  14. if (mail($to, $subject, $message, $headers)) {
  15. echo 'mail() Success!' . "<br />n";
  16. }
  17. else {
  18. echo 'mail() Failure!' . "<br />n";
  19. }
Add Comment
Please, Sign In to add comment