Reply to Re: How to ensure that EMAIL from mail() do not goes into SPAM folder?

Your name:

Reply:


Posted by J.O. Aho on 02/14/07 07:51

Eric Layman wrote:

> Are there ways to prevent emails generated from mail() going into SPAM /
> JUNK folder?

Don't copy headers from a mail sent with a normal mail client.
Have a Reply-To, From and Content-type that matches what is used in the mail.
X-Mailer header can be used to tell it's a PHP script used.

Myself I add X-Mailer-URL to tell where the sending script is located (full
url), X-Posting-Host with the remote users IP-number and X-HTTP-UserAgent
which tells what browser the remote user used and last X-Complaints-To which
is the e-mail address to contact if there been some abuse or if the script
been used by spammers (don't forget to check for header injections tries, if
you are using a mail form).

You then have to think about your Subject and how the body of the message
looks like, these affects also spam filtering. The more HTML and links you
have in your mail, the higher risk it's to be caught by a filter. Keep in mind
that the host where your script is run on may be in a blacklist (this is quite
common for dynamic-ip hosts).

There are never a 100% that a mail won't be caught by a filter, but you get a
lot of looking at the mail you got to your spam folder, if there isn't any
extra information in the mail or it's header, then contact your mail provider
and ask why it was filtered.


--

//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация