Re: Email - Best practice/advice please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Chubb wrote:

> I have generally been using the PHP mail function for sending emails
> from contact forms on websites, but have recently had problems with a
> lot of mails being delivered to junk/spam folders.
> I've tried loads of different headers, etc and almost every contact
> form on sites I've done is different.
> I think it's time I started standardising and using an SMTP class to
> send and wanted some advice from people.
> I'm looking at the Pear Mail package and wondering whether that would
> be ok, or should I just start rolling out phpmailer on all sites, in
> case I start to put mailing lists, etc. in the future.
> Basically, what do most of you do for contact/enquiry form emails?

Tom, I think you're groping in the dark.  If your emails are ending up
in junk or spam folders, you need to investigate that in detail. 
How you generate your email is largely irrelevant and has little or no
bearing on whether it gets identified as spam or not. 

To answer your specific question, I use here-doc plus exec(sendmail). 


/Per Jessen, Zürich


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux