You are here: Proper form for sending mail « All PHP « IT news, forums, messages
Proper form for sending mail

Posted by Shooter on 10/24/06 03:22

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

 

Navigation:

[Reply to this 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

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