You are here: Re: mail() not reaching hotmail « PHP Programming Language « IT news, forums, messages
Re: mail() not reaching hotmail

Posted by Geoff Muldoon on 06/06/07 23:30

Tom says...

> > > > Are there any special headers required for hotmail? I've looked
> > > > around a bit, and can't seem to figure it out. I've even tried
> > > > including several different headers, but always with the same results
> > > > - reaches my website's email account, but not my hotmail account. The
> > > > code I am using to test is:

> If you aren't able to get an error back, you might need to check with
> hotmail to see if they might be filtering something.

Not sure about Hotmail, but I had a similar problem with the spam
filtering on another service (Gmail?, can recall).

The standard PHP mail() function can set the sender address in the header
to be different from the canonical sender address in your server's SMTP
settings.

Try using the optional fifth mail() parameter.

$to = 'someone@hotmail.com';
$subject = 'Blah';
$message = 'Blah, blah';
$headers = '';
$params = '-f<insert a known real sender email address here>';

mail($to, $subject, $message, $headers, $params);

Geoff M

 

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

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