Re: mail not sent to certain mail accounts
| From: | Paul Scott | Date: | Mon, 16 Jan 2006 19:25:19 +0000 |
| Subject: | Re: mail not sent to certain mail accounts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228679@lists.php.net to get a copy of this message | ||
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 theA 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