Guest User

Untitled

a guest
Aug 24th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Sent mail from my site to members appears as spam
  2. $headers = "From: [email protected]";
  3. $headers .= "Reply-To: [email protected]";
  4.  
  5. if ( mail("[email protected]","Test","Hello,world !",$headers) ) {
  6. echo "The email has been sent!";
  7. } else {
  8. echo "The email has failed!";
  9. }
  10.  
  11. $subject = "Put Subject Here";
  12. $message = "Put at least a paragraph of text";
  13. $headers = "MIME-Version: 1.0n";
  14. $headers .= "Content-type: text/htmlrn";
  15. $headers .= "X-Mailer: PHP/" . phpversion() . "rn";
  16. $headers .= "From: [email protected]";
  17. $headers .= "Reply-To: [email protected]";
  18.  
  19. if ( mail($to,$subject,$message,$headers) ) {
  20. echo "The email has been sent!";
  21. } else {
  22. echo "The email has failed!";
  23. }
Add Comment
Please, Sign In to add comment