phpMailer mail goes into junk folder

Please support our PHP advertiser: 50% off 6 Months Dedicated Server Hosting from 1&1!
Reply

Join Date: Apr 2008
Posts: 583
Reputation: veledrom is an unknown quantity at this point 
Solved Threads: 0
veledrom veledrom is offline Offline
Posting Pro

phpMailer mail goes into junk folder

 
0
  #1
Nov 21st, 2008
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
  1. $mail = new PHPMailer();
  2. $mail->IsSMTP();
  3. $mail->Host = "mail.myserver.com";
  4. $mail->SMTPAuth = true;
  5. $mail->Username = "username";
  6. $mail->Password = "passw";
  7. $mail->From = "mymail@xxxx.xom";
  8. $mail->FromName = "name surname";
  9. $mail->AddAddress ("xxxx@ssss.com");
  10. $mail->WordWrap = 50;
  11. $mail->IsHTML(true);
  12. $mail->Subject = "Hi";
  13. $mail->Body = "Dear customer";
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: pritaeas will become famous soon enough pritaeas will become famous soon enough 
Solved Threads: 180
Sponsor
pritaeas's Avatar
pritaeas pritaeas is offline Offline
Veteran Poster

Re: phpMailer mail goes into junk folder

 
0
  #2
Nov 21st, 2008
Use the full FromName so it contains the name and the email address in < >

Hans Pollaerts <pritaeas@example.com>

This fixed it for me. Try to conform to the standards as much as possible.
"If it is NOT source, it is NOT software."
-- NASA
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 232
Reputation: Rhyan is an unknown quantity at this point 
Solved Threads: 24
Rhyan's Avatar
Rhyan Rhyan is offline Offline
Posting Whiz in Training

Re: phpMailer mail goes into junk folder

 
0
  #3
Nov 21st, 2008
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...
" Of all the things I've lost,
I miss my mind the most...."
Mark Twain
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 1
Reputation: saabz is an unknown quantity at this point 
Solved Threads: 0
saabz saabz is offline Offline
Newbie Poster

Re: phpMailer mail goes into junk folder

 
0
  #4
Mar 17th, 2009
You could also try taking "Hi" out of the subject line as most antispam systems will bounce it because of that.

Good Luck
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 103
Reputation: airbourne is an unknown quantity at this point 
Solved Threads: 5
airbourne's Avatar
airbourne airbourne is offline Offline
Junior Poster

Re: phpMailer mail goes into junk folder

 
0
  #5
Mar 17th, 2009
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.
Last edited by airbourne; Mar 17th, 2009 at 9:13 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2009
Posts: 1
Reputation: gaushul is an unknown quantity at this point 
Solved Threads: 0
gaushul gaushul is offline Offline
Newbie Poster
 
0
  #6
Dec 22nd, 2009
Please help me. I am also getting same problem.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 179
Reputation: rajabhaskar525 is an unknown quantity at this point 
Solved Threads: 24
rajabhaskar525 rajabhaskar525 is offline Offline
Junior Poster
 
0
  #7
Dec 22nd, 2009
  1. $mail->AltBody = "This is the body in plain text for non-HTML mail clients";
  2. $mail->Send();
add this two tags and try.
Last edited by rajabhaskar525; Dec 22nd, 2009 at 6:11 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum


Views: 3960 | Replies: 6
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC