Key points
- A Microsoft 365 or Gmail account only sends with its own address until it has been given permission to use another one.
- In Microsoft, you need the Send As permission on the info@ mailbox. In Gmail, you need info@ in "Send mail as".
- With the switch off, the site sends from the connected account and info@ receives the replies. When turned on, info@ becomes the sender.
- In case of SendAsDenied, the log indicates what needs to be adjusted in the Exchange admin center.
- The test email shows the actual sender and the reply-to address. All of this is free. Alerts in case of failure and the backup server require nexya Pro.
WordPress emails with Microsoft 365: what changes with OAuth connection
To send WordPress emails with Microsoft 365 or Gmail, many sites have long entered an SMTP password into a plugin. Microsoft and Google are now pushing towards an OAuth connection: the site does not store the password, it receives authorization to send on behalf of a specific account.
The nexya Mail module offers this path alongside classic SMTP and API providers. You connect a Gmail or Microsoft 365 account, and the site’s messages (forms, forgotten passwords, orders) go through this account.
The surprising part comes right after. The connected account is often a person’s, for example marie@your-domain.ch, while the site needs to write from info@ or contact@. And that is where Microsoft and Google apply their rules.
Why the message is sent from a different address
By default, a Microsoft 365 or Gmail account only sends with its own address. Asking to send with another address, even from the same domain, is equivalent to requesting a right that the account does not yet have.
Depending on the service, two things can happen. Google replaces the sender with the connected account’s address. Microsoft rejects the message with an error containing SendAsDenied: the account does not have permission to send as info@.
In both cases, it is not WordPress that is wrong, nor the server. The permission is missing on the email service side, and it must be set there.
The permission is missing on the email service side, and it must be set there.
The two ways to set the sender in the Mail module
Since version 1.6.7, when the sending method is Microsoft 365 or Google, the Mail module displays a switch titled in the release notes “The connected account can send as this address”. It tells the module whether the connected account has been granted the right to send with the address you have chosen.
With the switch off, messages are sent from the connected account, and the chosen address, for example info@, receives the replies. This is the safe setting as long as the permission is not in place: nothing is rejected, and a client who replies writes correctly to info@.
With the switch on, info@ remains the visible sender. Only turn it on once the permission has been granted in Microsoft or Google, otherwise Microsoft will refuse the delivery.
- Off: actual sender = connected account, replies to the chosen address.
- On: actual sender = the chosen address, provided the account has the right.
- In both cases, the test email shows what actually happened.
Sending from info@ with a Microsoft 365 or Gmail account
-
1
Turn on the Mail module from the hub
In the nexya hub, turn on the Mail module. As long as it is turned off, none of its hooks run on the site.
-
2
Connect the Microsoft 365 or Gmail account
Choose Microsoft 365 or Google as the sending method and connect the account via OAuth. Enter info@ as the sender address and leave the sender switch off for now.
-
3
Grant the right to send as info@
In Microsoft, give the connected account the Send As permission on the info@ mailbox in the Exchange admin center. In Gmail, add and confirm info@ in "Send mail as". Give Microsoft time to apply the permission.
-
4
Turn on the switch and send a test
Turn on the "The connected account can send as this address" switch, then send the test email. It should show info@ as the actual sender. In case of SendAsDenied, the log indicates what remains to be adjusted.
Granting the right to send in Microsoft or Google
In Microsoft, the permission is called Send As. It is granted in the Exchange admin center, on the mailbox that holds the info@ address, often a shared mailbox: you add the account connected to the site as a person authorized to send as this mailbox. The Send on Behalf permission is different and is not enough for info@ to appear alone as the sender.
Allow for a delay before it takes effect. Microsoft does not always apply it instantly, and a delivery rejected right after the setting does not mean the setting is wrong.
In Google, the connected account must have the info@ address in its sending addresses, the “Send mail as” list in Gmail settings. The address must be added there and confirmed by Gmail before the site can use it.
These settings are made in Microsoft 365 or Gmail, with an administrator account or the account concerned. The Mail module cannot do them for you.

SendAsDenied: what the log says
The Mail module keeps a log of every delivery. When a message fails, the log displays the cause given by the server, along with the recipient and the subject, instead of a simple failure without explanation.
Since version 1.6.7, when Microsoft refuses to send as an address, the log does not just copy SendAsDenied: it indicates what needs to be set in the Exchange admin center. Since 1.6.8, a failed delivery also shows its steps, with what needs to be done.
If you see this error, two choices are viable. Either you grant the Send As permission and wait for it to be active. Or you turn off the switch, and messages are sent from the connected account, with info@ still receiving the replies.
Verify with the test email, then with the Summary tab
The Mail module sends a test email. Since version 1.6.7, this test displays the address from which the message was actually sent, and the address where replies will go. This is the verification that counts: it shows what Microsoft or Google accepted, not just what is written in the settings.
Run a test before turning on the switch, then another one after. The first should show the connected account as the sender and info@ for replies. The second should show info@ as the sender.
Then, the Summary tab, added in version 1.6.8, gathers the delivery figures. It allows you to see over a few days if failures recur, for example after a change of permissions on the Microsoft side.
The test shows what Microsoft or Google accepted, not just what is written in the settings.
What is free, what requires nexya Pro
Everything described above is part of the free version, for as many sites as you want: connecting a Gmail or Microsoft 365 account via OAuth, the sender switch, the log with the cause of failures, the test email, and the Summary tab. The module is activated from the nexya hub. As long as it is turned off, none of its hooks run on the site.
nexya Pro, sold on nexya.dev, adds a second sending server for emails and alerts in case of failure. This is useful if a Microsoft permission is revoked without warning: you learn about it through an alert instead of discovering it in the log.
One final note. The plugin does not send anything to a third party by default. The connection to Microsoft or Google only exists if you choose this sending method.
FAQ
Why do my WordPress emails go out under a collaborator's address and not info@?
Because the account connected to the site does not have the right to send as info@. As long as this right is missing, leave the sender switch off: messages are sent from the connected account and replies go to info@.
What does SendAsDenied mean?
Microsoft refuses to send the message with the requested address because the connected account does not have the Send As permission on that address. The Mail module log indicates what needs to be adjusted in the Exchange admin center.
Is the Send on Behalf permission enough?
No, for info@ to be the visible sender, you need the Send As permission. Send on Behalf displays the email as "on behalf of", which is a different right.
How do I know which address the message was actually sent from?
Send the test email from the Mail module. It displays the address from which the message was actually sent and the one that will receive the replies.
Do I need nexya Pro to connect Microsoft 365 or Gmail?
No. OAuth connection, the log, the test, and the sender switch are free. nexya Pro adds a second sending server and alerts in case of failure.
The modules in this post
Try nexya Pro free for 7 days
Every module, forms, newsletters and the page cache, on your site. No commitment.