PHP mail() seen as spam

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
azhan
Forum Commoner
Posts: 68
Joined: Fri Jun 27, 2008 6:05 am

PHP mail() seen as spam

Post by azhan »

Hello guys,

What makes php mail() goes into spam folder in yahoo? I've already get rid of url string inside the mail body but still the mail goes into spam folder...

huhu

azhan
synical21
Forum Contributor
Posts: 150
Joined: Tue Jul 28, 2009 8:44 am
Location: London UK

Re: PHP mail() seen as spam

Post by synical21 »

Have you set correct headers?

Code: Select all

 
$headers = "From: (EMAILHERE)\r\n";
$headers .= "Reply-To: (EMAILHERE)\r\n";
$headers .= "Return-Path: (EMAILHERE)\r\n";
$headers .= "X-Mailer: PHP" . phpversion();
 
Post Reply