954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

phpMailer mail goes into junk folder

Hi,
I use phpMailer to send authenticated email. The mail i sent goes into bulk or junk folders in yahoo and hotmail. They should go to inbox. How can i solve this problem?
Thanks

$mail = new PHPMailer();				
$mail->IsSMTP();
$mail->Host = "mail.myserver.com";			
$mail->SMTPAuth = true;				
$mail->Username = "username";			
$mail->Password = "passw";				
$mail->From = "mymail@xxxx.xom";				
$mail->FromName = "name surname";			
$mail->AddAddress ("xxxx@ssss.com");
$mail->WordWrap = 50;
$mail->IsHTML(true);   				
$mail->Subject = "Hi";				
$mail->Body    = "Dear customer";
veledrom
Master Poster
758 posts since Apr 2008
Reputation Points: 42
Solved Threads: 0
 

Use the full FromName so it contains the name and the email address in < >

Hans Pollaerts

This fixed it for me. Try to conform to the standards as much as possible.

pritaeas
Posting Expert
Moderator
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

I think there is no a 100% guaranteed solution for this problem, no matter you conform to standards or not. I use gmail and constantly i have mails from friends of mine going into the junk folder, unless I explicitly mark them as not spam.

I think that when the spam filters find an e-mail address matching their spam validation rules, they mark it as spam...
The good thing is that not every mail server in the world has as such paranoid spam filters as gmail and yahoo, so the solution of pritaeas my work in most cases other than yahoo, msn and google...

Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 

You could also try taking "Hi" out of the subject line as most antispam systems will bounce it because of that.

Good Luck

saabz
Newbie Poster
1 post since Mar 2009
Reputation Points: 10
Solved Threads: 0
 

Hi and Dear Customer are often found as precursors to unsolicited bulk mail. It may not be a problem with the phpMailer, but a problem with what you are trying to do.

Anti-Spam servers perform detections based on a number of factors. The server you are sending from should be written into DNS correctly with both forward and reverse lookups. The content of the messages as well as volume also play a role.

You should always conform to standards as much as possible, but likely you will never truly get around all spam filters. Some are too paranoid, some are broken and think everything is spam, some are designed to block everything not white-listed etc.

airbourne
Junior Poster
111 posts since Dec 2007
Reputation Points: 39
Solved Threads: 5
 

Please help me. I am also getting same problem.

gaushul
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
$mail->Send();


add this two tags and try.

rajabhaskar525
Junior Poster
179 posts since Nov 2009
Reputation Points: 12
Solved Threads: 27
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You