Title: WPO365 | Mail Integration for Office 365 / Outlook
Author: Marco van Wieren
Published: <strong>2020 ལོའི་ཟླ 11 ཚེས 25 ཉིན།</strong>
Last modified: 2024 ལོའི་ཟླ 6 ཚེས 20 ཉིན།

---

མཐུད་སྣེ་བཤེར་འཚོལ།

![](https://ps.w.org/mail-integration-365/assets/banner-772x250.png?rev=2429780)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/mail-integration-365/assets/icon-256x256.png?rev=2817704)

# WPO365 | Mail Integration for Office 365 / Outlook

 རྩོམ་པ་པོ། [Marco van Wieren](https://profiles.wordpress.org/wpo365/)

[ཕབ་ལེན།](https://downloads.wordpress.org/plugin/mail-integration-365.1.9.2.zip)

 * [ཞིབ་ཕྲ།](https://bo.wordpress.org/plugins/mail-integration-365/#description)
 * [གདེང་འཇོག](https://bo.wordpress.org/plugins/mail-integration-365/#reviews)
 *  [སྒྲིག་འཇུག](https://bo.wordpress.org/plugins/mail-integration-365/#installation)
 * [ཡར་རྒྱས།](https://bo.wordpress.org/plugins/mail-integration-365/#developers)

 [རམ་འདེགས།](https://wordpress.org/support/plugin/mail-integration-365/)

## ཞིབ་བརྗོད།

#### Support ending

= Support ending =

Early November 2022, ownership of the **Mail Integration for Office 365 / Outlook**
plugin transferred to [WPO365](https://www.wpo365.com/). We are committed to provide(
best-effort based) support for this plugin until the end of 2023.

To ensure, however, that we are able to provide you with long time support, we urge
you to download and install the [WPO365 | MICROSOFT GRAPH MAILER](https://wordpress.org/plugins/wpo365-msgraphmailer/)
plugin for WordPress instead (and de-activate the **Mail Integration for Office 
365 / Outlook** plugin and remove it from your WordPress website).

If you have already installed and configured the **Mail Integration for Office 365/
Outlook plugin**, then please make sure to check out our easy-to-understand [online migration](https://docs.wpo365.com/article/165-migrate-from-mail-integration-for-office-365-outlook-to-wpo365-microsoft-graph-mailer)
guide.

Marco van Wieren | Downloads by van Wieren | https://www.wpo365.com/

#### About this plugin

**Mail Integration for Office 365/Outlook (using OAuth2 and Microsoft’s Graph API
rather than SMTP)**

This plugin addresses the limitations of current free SMTP plugins, allowing you
to send email from WordPress via your Microsoft Account and ensure your email gets
delivered reliably, avoiding the spam box! Note, unlike other free SMTP plugins,
this one authenticates with the Microsoft Graph API rather than SMTP using OAuth2.
This addresses the recent change by Microsoft to disable basic authentication over
SMTP (i.e. username and password), preventing other free SMTP plugins from working
with Microsoft Accounts. **Unfortunately, Microsoft has yet to enable their Graph
API to work with the free versions of Outlook, Live, Hotmail etc. The plugin should
however work with the paid for personal and business versions of Office 365, Outlook
and Microsoft Exchange.**

### WPO365 | Mail Integration for Office 365 / Outlook

Contributors: wpo365
 Tags: smtp, outlook smtp, 365 smtp, live smtp, oauth Requires
at least: 5.5.3 Tested up to: 6.1 Stable tag: 1.9.2 Requires PHP: 7.1.1 License:
GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

IMPORTANT – Please choose the [WPO365 | MICROSOFT 365 GRAPH MAILER](https://wordpress.org/plugins/wpo365-msgraphmailer/)
plugin instead. This plugin is no longer supported and does not receive updates.

### Setup Instructions

You will need to follow the steps outlined on the following website to setup this
plugin correctly: [https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin](https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin)

### Setup Instructions

You will need to follow the steps outlined on the following website to setup this
plugin correctly: [https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin](https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin)

## སྒྲིག་འཇུག

You will need to follow the steps outlined on the following website to setup this
plugin correctly: [https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin](https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin)
You will need to follow the steps outlined on the following website to setup this
plugin correctly: [https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin](https://docs.wpo365.com/article/164-mail-integration-365-wordpress-plugin)

## FAQ

_What does it do?_

Put simply, the plugin relays all emails sent from WordPress through your Microsoft
email account (or an account of your choosing, for example a shared mailbox). This
helps improve the deliverability of your WordPress mail, as Microsoft’s mail servers
are set up to avoid being flagged as spam, and should already be configured as the
trusted mail server for your domain.

_Why another WordPress mail plugin?!_

Microsoft has disabled basic authentication (username and password) over the SMTP
protocol, requiring more modern and secure methods of authentication such as OAuth
2.0 (the protocol used by this plugin). As such most of the SMTP plugins available
do not support Office 365/Outlook, or if they do, the functionality is a paid for
feature.

_What are the prerequisites?_

To start using Mail Integration for Office 365, you need to setup a Microsoft Azure
Active Directory account. Azure Active Directory comes in several flavours (paid
and free), but it is possible to use the free tier for the purpose of this plugin.
You can register for this here (you’re probably already registered if you are using
Office 365). You will also need SSL enabled for at least the admin side of your 
website to ensure the OAuth keys are exchanged over a secure connection._What does
it do?_

Put simply, the plugin relays all emails sent from WordPress through your Microsoft
email account (or an account of your choosing, for example a shared mailbox). This
helps improve the deliverability of your WordPress mail, as Microsoft’s mail servers
are set up to avoid being flagged as spam, and should already be configured as the
trusted mail server for your domain.

_Why another WordPress mail plugin?!_

Microsoft has disabled basic authentication (username and password) over the SMTP
protocol, requiring more modern and secure methods of authentication such as OAuth
2.0 (the protocol used by this plugin). As such most of the SMTP plugins available
do not support Office 365/Outlook, or if they do, the functionality is a paid for
feature.

_What are the prerequisites?_

To start using Mail Integration for Office 365, you need to setup a Microsoft Azure
Active Directory account. Azure Active Directory comes in several flavours (paid
and free), but it is possible to use the free tier for the purpose of this plugin.
You can register for this here (you’re probably already registered if you are using
Office 365). You will also need SSL enabled for at least the admin side of your 
website to ensure the OAuth keys are exchanged over a secure connection.

## གདེང་འཇོག

![](https://secure.gravatar.com/avatar/9116551ad48e252fb0ff8e22b6edb99dbfc994e8efc15872b6de68b4dc444d4a?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-9782/)󠁿

 [yousefmansour](https://profiles.wordpress.org/yousefmansour/) 2023 ལོའི་ཟླ 1 ཚེས
5 ཉིན།

Works like a charm and has a great tutorial on how to set it up. Thank you!

![](https://secure.gravatar.com/avatar/b3d2b5e9ab39bb40f078d2db02bd7642bb2f9db42903e3a43935af4473a0c780?
s=60&d=retro&r=g)

### 󠀁[Super good mail plugin](https://wordpress.org/support/topic/super-good-mail-plugin/)󠁿

 [yf1019](https://profiles.wordpress.org/yf1019/) 2022 ལོའི་ཟླ 6 ཚེས 17 ཉིན།

I really appreciate author’s contribution. I installed this plugin and it has been
working great! Now I have upgraded my WordPress to version 6.0. This plugin is still
working as usual. Can’t imagine it is free.

![](https://secure.gravatar.com/avatar/d1e0a37949a687c285f7b4864baff6f4a0fb6421af3b2683c9cd7cac10eac38d?
s=60&d=retro&r=g)

### 󠀁[It works and is not difficult to configure](https://wordpress.org/support/topic/it-works-and-is-not-difficult-to-configure/)󠁿

 [gotaiwai](https://profiles.wordpress.org/gotaiwai/) 2022 ལོའི་ཟླ 6 ཚེས 16 ཉིན།

Very nice plugin. Highly recommended. Create the app on O365. Take record of the
client ID, secret, Tenant ID. Put them all into the plugin. Authorize. Then everything
works fine. The plugin does not offer sending test email feature. But you can go
into the WordPress user page and manually send email to a user. I successfully sent
an email to a test user on the first attempt after configuration.

![](https://secure.gravatar.com/avatar/b673475c09c0eecf375f9084379074cc672c5bc778278a1c30827054d30fbb9f?
s=60&d=retro&r=g)

### 󠀁[Does not work with multisite environment](https://wordpress.org/support/topic/does-not-work-with-multisite-environment/)󠁿

 [kerckhaert](https://profiles.wordpress.org/kerckhaert/) 2022 ལོའི་ཟླ 6 ཚེས 13 
ཉིན།

Plugin works great, except in a multisite environment.

![](https://secure.gravatar.com/avatar/eb424f0598f1b726391609f84bd409443d25fd5926f38c8c6129850ec1c49166?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-9317/)󠁿

 [taurus42se](https://profiles.wordpress.org/taurus42se/) 2022 ལོའི་ཟླ 6 ཚེས 5 ཉིན།

Started looking in to how to do this myself and then I found this plugin. No issues
at all and free!

![](https://secure.gravatar.com/avatar/6fc86040826d38f779b75a417adac154fa4b9a46d6616e5650789c0aea1dbf79?
s=60&d=retro&r=g)

### 󠀁[Amazing](https://wordpress.org/support/topic/amazing-3381/)󠁿

 [cahoskins](https://profiles.wordpress.org/cahoskins/) 2022 ལོའི་ཟླ 2 ཚེས 20 ཉིན།

I can’t believe this is free! I got it to work with godaddy’s managed wordpress.
GoDaddy only issues O365 email accounts now. The instructions are very clear for
such a complicated Microsoft process. Thanks to the author. I am so appreciative
and relieved that it works.

 [ གདེང་འཇོག 26 ཡོངས་སུ་ཀློག ](https://wordpress.org/support/plugin/mail-integration-365/reviews/)

## བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“WPO365 | Mail Integration for Office 365 / Outlook” is open source software. The
following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

 *   [ Marco van Wieren ](https://profiles.wordpress.org/wpo365/)

“WPO365 | Mail Integration for Office 365 / Outlook” has been translated into 1 
locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/mail-integration-365/contributors)
for their contributions.

[ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “WPO365 | Mail Integration for Office 365 / Outlook” ཡིག་སྒྱུར་བྱོས།](https://translate.wordpress.org/projects/wp-plugins/mail-integration-365)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/mail-integration-365/),
check out the [SVN repository](https://plugins.svn.wordpress.org/mail-integration-365/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/mail-integration-365/)
by [RSS](https://plugins.trac.wordpress.org/log/mail-integration-365/?limit=100&mode=stop_on_copy&format=rss).

## དག་བཅོས་ཉིན་ཐོ།

Ver. 1.9.2 – Changed short description
 Ver. 1.9.1 – Fixes an XSS vulnerability 
reported by patchstack in April 2023. Ver. 1.9.0 – Ownership of the plugin transferred
to WPO365 and tested with WordPress 6.1 / PHP 8.0 Ver. 1.8.6 – Corrected typo of
atts filter variable to args Ver. 1.8.5 – Added code to handle empty to, cc, bc 
and reply to email addresses, as well as adding an admin error if wp_mail is utilised
by another plugins Ver. 1.8.4 – Added Important Updates! notification to alert users
to need to re-authenticate with Office 365 Ver. 1.8.3 – Addressed composer dependency
issues by using php-scoper to namespace php libraries. Also addressed empty email
array bug. Ver. 1.8.2 – Modified wp_mail plugable function to address various issues
with closing SMTP mail events and forwarding to the Graph API Ver. 1.7.1 – Fixed
undefined variable error for $cc, $bcc and $reply_to in older PHP versions Ver. 
1.7.0 – Fixed WooCommerce and HTML issue Ver. 1.6.0 – Fixed email content type issue,
invalid oauth state issue, and reply-to and send as bug Ver. 1.5.0 – Fixed additional
multisite bug and reply-to bug Ver. 1.4.0 – Fixed bug where multisite options were
unsupported Ver. 1.3.0 – Changed error and OAuth scope handling. Ver. 1.2.0 – Added
support for sending attachments <3MB in size. Fixed session bug with WordPress API.
Ver. 1.1.0 – Added prefix namespace to composer libraries to avoid conflicts with
other plugins using Guzzle whilst also updating the oauth2-azure library at the 
same time. Ver. 1.0.4 – Fixed issue with code running outside of settings page, 
leading to error messages on admin backend. Replaced localhost with 127.0.0.1 if
present in redirect URI to prevent potential hostname resolution issues. Updated
to handle multiple “to” email addresses (either as a comma separated string, or 
a one dimensional array) Ver. 1.0.3 – Fixed issue with send as feature, preventing
emails being sent on behalf of others. Ver. 1.0.2 – Updated readme.txt description
and tags. Ver. 1.0.1 – Fixed minor spelling and display issues. Early November 2022,
ownership of the **Mail Integration for Office 365 / Outlook** plugin transferred
to [WPO365](https://www.wpo365.com/). We are committed to provide (best-effort based)
support for this plugin until the end of 2023.

To ensure, however, that we are able to provide you with long time support, we urge
you to download and install the [WPO365 | MICROSOFT GRAPH MAILER](https://wordpress.org/plugins/wpo365-msgraphmailer/)
plugin for WordPress instead (and de-activate the **Mail Integration for Office 
365 / Outlook** plugin and remove it from your WordPress website).

If you have already installed and configured the **Mail Integration for Office 365/
Outlook plugin**, then please make sure to check out our easy-to-understand [online migration](https://docs.wpo365.com/article/165-migrate-from-mail-integration-for-office-365-outlook-to-wpo365-microsoft-graph-mailer)
guide.

Marco van Wieren | Downloads by van Wieren | https://www.wpo365.com/

#### About this plugin

**Mail Integration for Office 365/Outlook (using OAuth2 and Microsoft’s Graph API
rather than SMTP)**

This plugin addresses the limitations of current free SMTP plugins, allowing you
to send email from WordPress via your Microsoft Account and ensure your email gets
delivered reliably, avoiding the spam box! Note, unlike other free SMTP plugins,
this one authenticates with the Microsoft Graph API rather than SMTP using OAuth2.
This addresses the recent change by Microsoft to disable basic authentication over
SMTP (i.e. username and password), preventing other free SMTP plugins from working
with Microsoft Accounts. **Unfortunately, Microsoft has yet to enable their Graph
API to work with the free versions of Outlook, Live, Hotmail etc. The plugin should
however work with the paid for personal and business versions of Office 365, Outlook
and Microsoft Exchange.**

https://youtu.be/EvNajsDenZMVer. 1.9.2 – Changed short description
 Ver. 1.9.1 –
Fixes an XSS vulnerability reported by patchstack in April 2023. Ver. 1.9.0 – Ownership
of the plugin transferred to WPO365 and tested with WordPress 6.1 / PHP 8.0 Ver.
1.8.6 – Corrected typo of atts filter variable to args Ver. 1.8.5 – Added code to
handle empty to, cc, bc and reply to email addresses, as well as adding an admin
error if wp_mail is utilised by another plugins Ver. 1.8.4 – Added Important Updates!
notification to alert users to need to re-authenticate with Office 365 Ver. 1.8.3–
Addressed composer dependency issues by using php-scoper to namespace php libraries.
Also addressed empty email array bug. Ver. 1.8.2 – Modified wp_mail plugable function
to address various issues with closing SMTP mail events and forwarding to the Graph
API Ver. 1.7.1 – Fixed undefined variable error for $cc, $bcc and $reply_to in older
PHP versions Ver. 1.7.0 – Fixed WooCommerce and HTML issue Ver. 1.6.0 – Fixed email
content type issue, invalid oauth state issue, and reply-to and send as bug Ver.
1.5.0 – Fixed additional multisite bug and reply-to bug Ver. 1.4.0 – Fixed bug where
multisite options were unsupported Ver. 1.3.0 – Changed error and OAuth scope handling.
Ver. 1.2.0 – Added support for sending attachments <3MB in size. Fixed session bug
with WordPress API. Ver. 1.1.0 – Added prefix namespace to composer libraries to
avoid conflicts with other plugins using Guzzle whilst also updating the oauth2-
azure library at the same time. Ver. 1.0.4 – Fixed issue with code running outside
of settings page, leading to error messages on admin backend. Replaced localhost
with 127.0.0.1 if present in redirect URI to prevent potential hostname resolution
issues. Updated to handle multiple “to” email addresses (either as a comma separated
string, or a one dimensional array) Ver. 1.0.3 – Fixed issue with send as feature,
preventing emails being sent on behalf of others. Ver. 1.0.2 – Updated readme.txt
description and tags. Ver. 1.0.1 – Fixed minor spelling and display issues.

## ཟུར་བརྗོད།

 *  Version **1.9.2**
 *  Last updated **ལོ 2 སྔོན།**
 *  Active installations **2,000+**
 *  WordPress version ** 5.5.3 ཡང་ན་དེ་ལས་མཐོ་བ། **
 *  Tested up to **6.1.10**
 *  PHP version ** 7.1.1 ཡང་ན་དེ་ལས་མཐོ་བ། **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/mail-integration-365/) དང་ [German](https://de.wordpress.org/plugins/mail-integration-365/).
 *  [ཁྱེད་ཀྱི་སྐད་ཡིག་ལ་ཡིག་སྒྱུར་བྱོས།](https://translate.wordpress.org/projects/wp-plugins/mail-integration-365)
 * Tags
 * [oauth](https://bo.wordpress.org/plugins/tags/oauth/)[outlook smtp](https://bo.wordpress.org/plugins/tags/outlook-smtp/)
   [smtp](https://bo.wordpress.org/plugins/tags/smtp/)
 *  [མཐོ་རིམ་མཐོང་སྣང་།](https://bo.wordpress.org/plugins/mail-integration-365/advanced/)

## གདེང་འཇོག

 4.9 out of 5 stars.

 *  [  25 5-star reviews     ](https://wordpress.org/support/plugin/mail-integration-365/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/mail-integration-365/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/mail-integration-365/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/mail-integration-365/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/mail-integration-365/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/mail-integration-365/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mail-integration-365/reviews/)

## བྱས་རྗེས་འཇོག་མཁན།

 *   [ Marco van Wieren ](https://profiles.wordpress.org/wpo365/)

## རམ་འདེགས།

Got something to say? Need help?

 [རམ་འདེགས་གླེང་སྟེགས་ལ་ལྟ།](https://wordpress.org/support/plugin/mail-integration-365/)