php mail problem

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
shujaataptech
Forum Newbie
Posts: 1
Joined: Mon Aug 15, 2005 12:41 pm
Location: karachi

php mail problem

Post 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");
Last edited by shujaataptech on Tue Aug 16, 2005 1:23 pm, edited 1 time in total.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Show us the headers you are sending along with the email.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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:
Post Reply