I'm sending "no-reply" mails using PHP mail function. The problem is that mails were sent, but not receiving in my inbox when I use the following "From" headers:
- From: Sender Name
<noreply@localhost.com>
- From:
noreply@localhost.com
- From: Sender Name
<test@localhost.com>
I have no actual mail address noreply@localhost.com
, but I have test@localhost.com
.
I think all of them are the correct formats according to the PHP documentation.
When I tried From: test@localhost.com
, it did work and I received the mail.
I really want to use the No. 1 format Form: My Site Name <noreply@localhost.com>
. It should work. Any idea?
I'm using XAMPP 1.6.7 with PHP 5.2.6 and MercuryMail.