Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $to = "my-email@webhost.com";
- $subject = "the subject";
- $message = "Hi;
- $headers = array("From: email@gmail.com","Reply-To: email@gmail.com","Cc: email@yahoo.com,email@gmail.com","X-Mailer: PHP/" . phpversion());
- $headers = implode("rn", $headers);
- echo (mail($to, $subject, $message, $headers)) ? 'Message sent!' : 'Message not sent!';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement