Page 1 of 1
Mail() problem - URGENT!
Posted: Wed Jul 22, 2009 11:43 am
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.
Re: Mail() problem - URGENT!
Posted: Wed Jul 22, 2009 11:53 am
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.
Re: Mail() problem - URGENT!
Posted: Wed Jul 22, 2009 12:00 pm
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.
Re: Mail() problem - URGENT!
Posted: Wed Jul 22, 2009 12:58 pm
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