Re: Proper form for sending mail
- From: "flamer die.spam@xxxxxxxxxxx" <die.spam@xxxxxxxxxxx>
- Date: 24 Oct 2006 15:24:24 -0700
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.
.
- References:
- Proper form for sending mail
- From: Shooter
- Proper form for sending mail
- Prev by Date: Re: HTML email with PHP tags
- Next by Date: Re: how to lock a block of php codes
- Previous by thread: Proper form for sending mail
- Next by thread: non session/cookie login
- Index(es):
Relevant Pages
|