Home > Archive > PHP Language > February 2007 > Mail function sends to gmail but not hotmail. Please help (newbie)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mail function sends to gmail but not hotmail. Please help (newbie)
|
|
|
| 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)),$heade
rs);
| |
| petersprc 2007-02-18, 6:58 pm |
| Hi,
Tried your code and it seemed to work fine. I would try changing the
domain as a test to see if that works (change it do domain.com for
example). Also, you might want to check if your script has any errors.
sendmail_path should be in quotes for example.
On Feb 18, 3:14 pm, raj <r...@nospam.com> wrote:
> Hi,
>
> Can anyone tell me what the requirements are to allowhotmailto 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 byhotmail. 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 webmas...@domain.com");
>
> //Contents of an Registration Auto responce email(text format)
> $message = "Thanks for registering".$userName;
>
> $headers .= "From: Name<webmas...@domain.com>\n";
> $headers .= "Reply-To: <webmas...@domain.com>\n";
> $headers .= "X-Sender: <webmas...@domain.com>\n";
> $headers .= "X-Mailer: PHP4\n"; //mailer
> $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
> $headers .= "Return-Path: <webmas...@domain.com>\n";
> mail($email,"Registration " ,wordwrap(stripslashes($message)),$heade
rs);
| |
| David Quinton 2007-02-19, 3:57 am |
| On Sun, 18 Feb 2007 20:14:11 +0000, raj <raj@nospam.com> wrote:
>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.
Chances are that the mail is being sent OK.
But Hotmail have very aggresive anti-spam systems.
I think that their (often moronic) users can flag messages as Spam.
If enough of them do it then that will temporarily block *all* mail
from the originating IP address.
That IP may be that of your Server, or you hosting company may well
send all outgoing server-originated mail through Gateway(s). That IP
may be blocked.
But you should have had a bounce message from Hotmail...
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
| |
| J.O. Aho 2007-02-19, 3:57 am |
| David Quinton wrote:
> That IP may be that of your Server, or you hosting company may well
> send all outgoing server-originated mail through Gateway(s). That IP
> may be blocked.
Most commonly dynamic ip addresses are blocked on quite many mail servers, the
same with ip-addresses that don't resolve to a valid ip-name.
> But you should have had a bounce message from Hotmail...
Hotmail seldom does bounces, specially not if your mail has been detected as
spam, those detected in the first level are quietly piped to /dev/null.
--
//Aho
| |
| shimmyshack 2007-02-20, 3:57 am |
| On 19 Feb, 08:51, "J.O. Aho" <u...@example.net> wrote:
> David Quinton wrote:
>
> Most commonly dynamic ip addresses are blocked on quite many mail servers, the
> same with ip-addresses that don't resolve to a valid ip-name.
>
>
> Hotmail seldom does bounces, specially not if your mail has been detected as
> spam, those detected in the first level are quietly piped to /dev/null.
>
> --
>
> //Aho
try using authenticated smtp, or set reverse DNS entry for your domain
name.
|
|
|
|
|