Page 1 of 1

php mail problem

Posted: Mon Aug 15, 2005 12:52 pm
by shujaataptech
hello;

i am using a php mail classes like phpmailer class libraries. the problem is that i cannt be able to send the email to gmail by that lib. also mail function not able to send the mail to gmail.

these are the headers.


mail($email,$subject,"<b>".$msg.$body, "From: $sender\nContent-Type: text/html; charset=iso-8859-1");

Posted: Mon Aug 15, 2005 12:57 pm
by John Cartwright
Show us the headers you are sending along with the email.

Posted: Mon Aug 15, 2005 12:57 pm
by feyd
it often comes down to the headers being sent are being filtered down to "it's spam" by most services.. As I usually say with this kind of "issue" look at the headers sent by other emails that get through, compare them to the headers your email is sending and the junk mail you have.. you should come down to a set of headers that seems to always work.. set those in your email, and you should be okay..


[edit] nice snipe Jcart! :lol: