You are here: Mail function sends to gmail but not hotmail. Please help (newbie) « All PHP « IT news, forums, messages
Mail function sends to gmail but not hotmail. Please help (newbie)

Posted by raj on 02/18/07 20:14

Hi,

Can anyone tell me what the requirements are to allow hotmail to collect
messages. I have a script using the mail function at the moment that emails
most email clients but the email doesn't seem to be accepted by hotmail. It
email doesn;t even go into the junk box.

Please help,

Raj (Newbie)

The code:

ini_set(sendmail_path, "/usr/sbin/sendmail -t -f webmaster@domain.com");

//Contents of an Registration Auto responce email(text format)
$message = "Thanks for registering".$userName;

$headers .= "From: Name<webmaster@domain.com>\n";
$headers .= "Reply-To: <webmaster@domain.com>\n";
$headers .= "X-Sender: <webmaster@domain.com>\n";
$headers .= "X-Mailer: PHP4\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <webmaster@domain.com>\n";
mail($email,"Registration ",wordwrap(stripslashes($message)),$headers);

 

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

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