Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sent mail from my site to members appears as spam
- $headers = "From: [email protected]";
- $headers .= "Reply-To: [email protected]";
- if ( mail("[email protected]","Test","Hello,world !",$headers) ) {
- echo "The email has been sent!";
- } else {
- echo "The email has failed!";
- }
- $to = "[email protected]";
- $subject = "Put Subject Here";
- $message = "Put at least a paragraph of text";
- $headers = "MIME-Version: 1.0n";
- $headers .= "Content-type: text/htmlrn";
- $headers .= "X-Mailer: PHP/" . phpversion() . "rn";
- $headers .= "From: [email protected]";
- $headers .= "Reply-To: [email protected]";
- if ( mail($to,$subject,$message,$headers) ) {
- echo "The email has been sent!";
- } else {
- echo "The email has failed!";
- }
Add Comment
Please, Sign In to add comment