Guest User

Untitled

a guest
Mar 8th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. $subject = "the subject";
  2.  
  3. $message = "Hi;
  4.  
  5. $headers = array("From: [email protected]","Reply-To: [email protected]","Cc: [email protected],[email protected]","X-Mailer: PHP/" . phpversion());
  6.  
  7. $headers = implode("rn", $headers);
  8.  
  9. echo (mail($to, $subject, $message, $headers)) ? 'Message sent!' : 'Message not sent!';
Advertisement
Add Comment
Please, Sign In to add comment