Proper form for sending mail
- From: "Shooter" <SDshooter@xxxxxxxxxxx>
- Date: Tue, 24 Oct 2006 03:22:53 GMT
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
.
- Follow-Ups:
- Re: Proper form for sending mail
- From: flamer die.spam@xxxxxxxxxxx
- Re: Proper form for sending mail
- Prev by Date: Re: Advice about optomizing MYSQL
- Next by Date: Re: Advice about optomizing MYSQL
- Previous by thread: Paradox DB and TIME field
- Next by thread: Re: Proper form for sending mail
- Index(es):
Relevant Pages
|