Re: mail not sent to certain mail accounts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Angelo Zanetti wrote:
I'm using the PHP mail function to send a confirmation email to a person once they register on the site. A few thing that happens with 2 of the

A bunch of times, I have found that some hosts will up the spam ante when you don't include almost _all_ of the headers.

What could be the factors contributing to this? Could it be anti-spam software? or could there be something else that is blocking the mail? Or could there be a problem with my PHP mail function?

Try put in, if not all, but most headers that you will ordinarily see in a desktop mail client:

  $headers="";
   $headers .= "X-Sender:  $mail <$mail>\n"; //
   $headers .="From: $mail_f <$mail_f>\n";
   $headers .= "Reply-To: $mail_f <$mail_f>\n";
   $headers .= "Date: ".date("r")."\n";
$headers .= "Message-ID: <".date("YmdHis")."you@".$_SERVER['SERVER_NAME'].">\n";
   $headers .= "Subject: $subject\n";
   $headers .= "Return-Path: $mail_f <$mail_f>\n";
   $headers .= "Delivered-to: $mail_f <$mail_f>\n";
   $headers .= "MIME-Version: 1.0\n";
   $headers .= "Content-type: text/html;charset=ISO-8859-9\n";
   $headers .= "X-Priority: 1\n";
   $headers .= "Importance: High\n";
   $headers .= "X-MSMail-Priority: High\n";
   $headers .= "X-Mailer: A PHP mailer!\n";

Any help would be great.

HTH

--Paul

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux