hotmail not receiving mail from php mail() function

gmail and yahoo no problemo, hotmail and sympatico not so good the server send the email no problem but I do not receive it in a hotmail account (I checked the junk folder, not there either).

Anybody has an idea why? And of course how to fix the problem.
LVL 28
gamebitsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kyodaiCommented:
Check your mailserver (sendmail? Postfix?) log and see the error code. From what i can read here it looks like the mail is sent fine but rejected by hotmail/Sympatico, this is usually due to missing reverse dns entry or other details that may let you appear like a spammer. A Look at the (successfully delivered) mail might give some clues.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gamebitsAuthor Commented:
I do not control the server (I am with Midphase) I contacted their support service and they worked with me but the problem is still unresolved, here is a copy of one of their last email about it.

"It reaches my midphase account, any gmail account, and any yahoo account.
However I have still not received any to my hotmail account.  The mail logs
show that it is reached and completed.  However this does not look true.  I
believe hotmail changed the way they accept mail.  So I went ahead and added an
spf record to your account.  This will take 3-6 hours to propagate, but may
solve the problem."

This was last week. I also try to see what hotmail had to say about it, haven't received a reponse yet.
0
Ray PaseurCommented:
The SPF record is a good idea.  But there may still be a lot of hurdles, for example,

The sending server may still be adding "anti-abuse" headers to the message, and hotmail may see these, and knowing that it is server-generated, discarding it as spam.

The sending server may be on a blacklist that hotmail uses.

The sending server may have an IP address that is close to a blacklisted IP address.

In short, there are a lot of things you cannot control and these can determine whether the mail gets through or not.  One suggestion is to try using PHPMailer.  It can connect to an SMTP server and send the mail through that server.  Not sure if this will do the job, but it is worth a try.

Best of luck with it, ~Ray
0
gamebitsAuthor Commented:
Thank you to all who participate, I will split the points.

For future reference here is the way the problem was solved (email from the support department of my webhost)

"The main reason of why it may be failing is due to the fact all ISPs verify the sender email address before the email gets accepted.

By default, php_mail() uses <CPANEL_username>@<domain.tld> as the "From" address which's "DEFAULT EMAIL ADDRESS" in your case.

1) The mailbox "EMAIL ADDRESS" didn't exist, so the verification would fail. I created it within your account with the password..."

So basically you need to create an email account with your cpanel username@domain.com to get Hotmail to accept mail sent by phpmail(), now my only problem is the mail end up in the junk folder. This will be another question.
0
gamebitsAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.