You are here: Re: [PHP] mail not sent to certain mail accounts « PHP « IT news, forums, messages
Re: [PHP] mail not sent to certain mail accounts

Posted by Paul Scott on 10/04/19 11:37

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

 

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

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