Re: Mail and hotmail
| From: | Angelo Zanetti | Date: | Thu, 04 May 2006 10:52:52 +0000 |
| Subject: | Re: Mail and hotmail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235469@lists.php.net to get a copy of this message | ||
Peter Lauri wrote:
Best group member, I am sending email to a hotmail thru PHP. When I send it like this it arrives (in the junk mail, but it arrives): mail('theaddress@hotmail.com', 'A nice subject', 'Some text'); It works well, but I want to change the FROM header so I do this: mail('theaddress@hotmail.com', 'A nice subject', 'Some text', 'From: Peter Lauri <peter@lauri.se>'); This email does not arrive to the Hotmail inbox. If I send to a regular email, like Google Email (gmail) or a regular POP3 it arrives without problems. Anyone who has experienced this problem with sending emails to Hotmail? And how do you solve it? Best regards, Peter Lauri you need to set your mail headers for the mail to be assumed valid, namely:X-Sender From Date Subject Delivered-to MIME-Version Reply-To Content-type X-Priority Importance Return-Path X-Mailer HTH Angelo