Link to home
Start Free TrialLog in
Avatar of gamebits
gamebitsFlag for Canada

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of kyodai
kyodai

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gamebits

ASKER

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Thank you.