Office 365 & PHP mail

Our client recently switched to Office 365. Previously his email was hosted with his domain. He runs a web store and each time people order something or ask for info he receives an email about it. We had to adjust the PHP code of course in order to make it work with the smtp settings of Office 365.

Ever since the switch we noticed not everything is received by email when using the website forms or placing orders. We tested all email addresses with and found no problems. We checked the Mail flow in Exchange and the missing emails are nowhere to be found. We double checked the SPF records to be sure, everything is ok.

Is Microsoft forbidding you to use PHP mail with Office 365?
IT MeetjeslandAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Julian HansenCommented:
Is Microsoft forbidding you to use PHP mail with Office 365?

How would MS know? Sending an email is a process of connecting to an SMTP server and passing the message on - the application that actually does that is mostly obscured from the process.

When you made the change - what else changed?
Are you sending through a different server?
Is it possible the mails are being blocked as spam?
On the Web server are there logs you can examine to see the status of the delivery to the SMTP server - that is where you should start. Start from where the email is generated - check what that connects to and check the logs - if nothing found then check what the next step in the process is - usually the receiving SMTP server - check the logs there and so on.
Ray PaseurCommented:
Short answer, No.  Microsoft does not care.  

Longer answer, Email is the wrong tool (and always has been the wrong tool) for eCommerce.  It seemed to make sense a dozen years ago, but that is ancient history now.  When you buy something from Amazon or eBay, do you think there are people sitting around waiting to receive email messages?  Of course not!  You might want to encourage your client to refactor the application into a traditional eCommerce platform.

There are many things that can go wrong with email including spam filters.  And there is no accountability for the messages - everything in the message can be spoofed.  If you have a dependency on email, you might want to consider working with one of the professional email firms like ConstantContact.  They have it figured out; most of the rest of us do not.
Dave BaldwinFixer of ProblemsCommented:
Actually Microsoft does care and they can detect whether the emails came from the web page or from a regular email client.  I have done the tests.  An email sent from a PHP web form and from a desktop email client thru the mail server for the same site will be treated differently.  The one from the web form was ignored and the one from the desktop was received.

It may also depend on the 'reputation' of your mail server, at least that's what the Microsoft page on the subject says.
Mark GalvinManaging Director / Principal ConsultantCommented:

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
IT MeetjeslandAuthor Commented:
We moved the website to another hosting, everything is working fine now. The current hosting was blocking the use of secure SMTP for office 365.
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
Office 365

From novice to tech pro — start learning today.