PHP Mailer for Office 365

This might be little late, but still most of us are getting issue with sending email using PHP routing office 365. In this blog, just sharing one of my client issues where they were using PHP webpages and want to relay message through office 365. So, there PHP Mail for Office 365.

To configure the relay, we don’t need to do any configuration at Office 365 end. We just need to have one PHP mailer. Which we can get download from this link on github.

Once you download it, extract on your machine where PHP webpage has been hosted. On same folder, create a new file of PHP with below script.

Once this is done, just try to send email.

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.