I have used the PHP mail function in a script and any mail sent to Yahoo appears to be filtered and categorised as SPAM. Is there anything I can set to stop this.
Thanks
Milton
PHP Mail Function
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
It all comes down to the headers you send, and the content to the message. I'd like to spend my time not having to deal with idiosyncrasies of mail, so I often leave it to something like phpMailer
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
I'd advise not too bother too much with PHP's mail function but use PHP Mailer.
Re: PHP Mail Function
There are lots of reasons it could be and most are beyond your control if you are on a shared server. It's not just a case of using the right headers in PHP mail() although this is also important also. Just a couple of things for example: if your domain has no postmaster or abuse account, has no SPF record, or it sends an HELO/EHLO the remote server doesnt like. AOL, hotmail, gmail and sourceforge are all very fussy in this respect. Also rejection could be because the mailserver is on a dynamic IP or has no PTR. All the above nothing to do with PHP. The only way to have complete control over your output is to send with fsockopen();EzehM wrote:I have used the PHP mail function in a script and any mail sent to Yahoo appears to be filtered and categorised as SPAM. Is there anything I can set to stop this.