Page 1 of 1
PHP Mail Function
Posted: Sun Sep 04, 2005 9:01 am
by EzehM
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
Posted: Sun Sep 04, 2005 9:23 am
by feyd
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
Posted: Sun Sep 04, 2005 10:12 am
by raghavan20
I am designing a mail class and i was reading articles from Zend and the PHP manual.
I could not get more information on additonal parameters in the mail function.
can anyone here explain me what these additonal parameters are and where they are used???
Posted: Sun Sep 04, 2005 10:17 am
by anjanesh
Posted: Sun Sep 04, 2005 10:28 am
by patrikG
I'd advise not too bother too much with PHP's mail function but use
PHP Mailer.
Re: PHP Mail Function
Posted: Sun Sep 04, 2005 4:14 pm
by bokehman
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.
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();