|
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]
|