Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $from = 'anothermail@gmail.com';
  2. $subject = 'test';
  3. $message = 'body';
  4. $message = wordwrap($message, 70);
  5. // send mail
  6. if (mail("my-mail@gmail.com",$subject,$message,"From: $fromn")){
  7. echo "It works";
  8. }
  9. else{
  10.  
  11. echo "Fail";
  12. }
  13.  
  14. $from = 'anothermail@gmail.com';
  15. $subject = 'test';
  16. $message = 'body';
  17. $message = wordwrap($message, 70);
  18. // send mail
  19. if (mail("my-mail@gmail.com",$subject,$message,"From: ".$form."n")){
  20. echo "It works";
  21. }
  22. else{
  23.  
  24. echo "Fail";
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement