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");
php mail problem
Moderator: General Moderators
-
shujaataptech
- Forum Newbie
- Posts: 1
- Joined: Mon Aug 15, 2005 12:41 pm
- Location: karachi
php mail problem
Last edited by shujaataptech on Tue Aug 16, 2005 1:23 pm, edited 1 time in total.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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!
[edit] nice snipe Jcart!