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.
Mail() problem - URGENT!
Moderator: General Moderators
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: Mail() problem - URGENT!
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.
You might have better luck using an email library such as Swift mailer. Try it.
Re: Mail() problem - URGENT!
I've been just looking at it (Swift) i think I'll use it.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.
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!
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.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.
Nick