Re: Proper form for sending mail




Shooter wrote:

I am starting to get more of the PHP-generated mails from my site marked as
spam due to a variety of header errors/omissions/etc. My mail notices used
to get by okay, even though they are very simple, but now I'm seeing my own
mails marked as spam by my own mail server. What info do I need to include
in the mails' header now to not generate such errors?

Current example:
{
$headers .= "From: $FROM <$FROM>\n";
$headers .= "X-Sender: <$FROM>\n";
$headers .= "X-Mailer: MyOrganization.org\n"; //mailer
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <$FROM>\n";
//Uncomment this to send html format
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";


Thanx,
Wm

You should only need to specify the $headers .= "From: $FROM
<$FROM>\n"; line in your php, you need to properly configure the
headers in the mail daemon, try to get a better idea of why its being
marked as spam has an anitspam application actually stated that it has
invalid headers? it could be matching keywords in the from field or the
body fields.

Flamer.

.



Relevant Pages

  • Re: Firewall suggestion?
    ... > I have a customer that is using Exchange 5.5 behind a simple firewall. ... > server by trying to use it as a Spam relay. ... The target hosts must be ... If this header is set, ...
    (comp.security.firewalls)
  • bogofilte-0.15.4
    ... Bogofilter is a mail filter that classifies mail as spam or ham ... Bogofilter is run by an MDA script to classify an incoming message as ... * Additional header line tagging as suggested by Michael O'Reilly. ... Added BOGOTEST environment variable to enable flex debugging. ...
    (comp.os.linux.announce)
  • bogofilter 0.15.10 available
    ... Bogofilter is a mail filter that classifies mail as spam or ham ... Bogofilter is run by an MDA script to classify an incoming message as ... your token database to take advantage of header line tagging which was ... Revise flex rule for encoded text to reduce program size. ...
    (comp.os.linux.announce)
  • FAQ: Canonical list of questions Beavis refuses to answer (V1.40) (was Re: Fixing mangled mbox From
    ... misdated 'From ' header fields. ... His response, if any, usually consists of replying to the parent post with a loud proclamation that his Usenet-reading software runs a magical filter that automatically identifies anyone who's making fun of him, and hides those offensive posts. ... If spammers avoid forging real E-mail addresses on spam, then where do all these bounces everyone reports getting come from? ...
    (comp.mail.misc)
  • bogofilter-0.15.5 - New Current Release
    ... Bogofilter is a mail filter that classifies mail as spam or ham ... Bogofilter is run by an MDA script to classify an incoming message as ... The newly expanded tagging of header line tokens continues the effort to ...
    (comp.os.linux.announce)