Mail() problem - URGENT!

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
DJAllen
Forum Newbie
Posts: 2
Joined: Wed Jul 22, 2009 11:40 am

Mail() problem - URGENT!

Post by DJAllen »

Hello fellow coders,


I have a mail function which sends activation code to my members, the bad thing is, to someone mail is sent while someone not.
Has any of you experienced this kind of issue?

I'm using simple mail() function. What could be a solution?

Thank you.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Mail() problem - URGENT!

Post by jayshields »

PHPs mail() function is often regarded my email clients as spam, depending on what headers you are using, your configuration and also your email server details.

You might have better luck using an email library such as Swift mailer. Try it.
DJAllen
Forum Newbie
Posts: 2
Joined: Wed Jul 22, 2009 11:40 am

Re: Mail() problem - URGENT!

Post by DJAllen »

jayshields wrote:PHPs mail() function is often regarded my email clients as spam, depending on what headers you are using, your configuration and also your email server details.

You might have better luck using an email library such as Swift mailer. Try it.
I've been just looking at it (Swift) i think I'll use it.

Funny thing is some Gmail users receive it, some not.
spider.nick
Forum Commoner
Posts: 72
Joined: Wed Jul 15, 2009 12:22 pm
Location: Overland Park, KS

Re: Mail() problem - URGENT!

Post by spider.nick »

DJAllen wrote:Hello fellow coders,


I have a mail function which sends activation code to my members, the bad thing is, to someone mail is sent while someone not.
Has any of you experienced this kind of issue?

I'm using simple mail() function. What could be a solution?

Thank you.
The important thing is to make sure that you are using the correct parameters when using mail(). There are tons of additional headers that you can use, other than just To: and From:, as well.

Nick
Post Reply