Linux 软件免费装
Banner图

Sendelva – Email Delivery for Microsoft 365

开发者 remymazmanian
更新时间 2026年10月13日 22:32
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

email smtp graph outlook microsoft 365

下载

0.4.0

详情介绍:

If your domain's mail lives in Microsoft 365, your WordPress server doesn't need SMTP credentials, an SMTP relay or PHPMailer configuration. Sendelva sends everything that goes through wp_mail(), such as password resets, form notifications and order emails, through the Microsoft Graph sendMail endpoint with an app-only OAuth token. Messages go out from your real tenant and appear in the sender mailbox's Sent Items. How it behaves

安装:

  1. Install and activate Sendelva from Plugins > Add New, or upload the sendelva folder to /wp-content/plugins/.
  2. In the Microsoft Entra admin center, register an application (single tenant, no redirect URI) and copy its Directory (tenant) ID and Application (client) ID.
  3. Under Certificates & secrets, create a client secret and copy its value. It's shown only once.
  4. Under API permissions, add the Microsoft Graph application permission Mail.Send, then click Grant admin consent.
  5. In WordPress, go to Settings > Sendelva, enter the tenant ID, client ID, client secret and the sender mailbox, and save.
  6. Send a test message from the same screen and check the send log.
The settings screen has the same walkthrough built in, with links to each Microsoft page. To keep the credentials out of the database, define them in wp-config.php instead. The settings screen labels each value that comes from a constant. define( 'SENDELVA_TENANT_ID', '...' ); define( 'SENDELVA_CLIENT_ID', '...' ); define( 'SENDELVA_CLIENT_SECRET', '...' ); define( 'SENDELVA_SENDER', 'noreply@example.com' ); The GRAPH_MAILER_* names from before the plugin was renamed still work.

屏幕截图:

  • The send log keeps the last 20 messages, with the recipient, subject and result of each.
  • A test message sent from the settings screen, with the result shown at the top.
  • The step-by-step Microsoft Entra guide, which you can show or hide.

升级注意事项:

0.4.0 Graph Mailer is now Sendelva. Install Sendelva, then deactivate and delete Graph Mailer. Settings, the send log and wp-config.php constants carry over. 0.3.0 Prepares the plugin for the WordPress.org directory: translatable strings, enqueued admin assets and a nonce-checked test result. No settings change.

常见问题:

Do I need an SMTP server or an SMTP password?

No. Sendelva talks to Microsoft Graph over HTTPS with an app-only token. There is no SMTP connection and no mailbox password.

Which Microsoft 365 permission does it need?

The Microsoft Graph application permission Mail.Send, with admin consent. Without consent, Microsoft issues a token but refuses every send, which is the most common setup problem. Mail.Send as an application permission can send as any mailbox in your tenant. To limit the app to the one mailbox you use, add an Exchange application access policy. Microsoft documents this under "Limiting application permissions to specific Exchange Online mailboxes".

What happens if Microsoft Graph is unavailable?

With fallback on (the default), the message is handed back to WordPress's own mailer and the send log notes that it was. With fallback off, the send fails and WordPress fires wp_mail_failed.

Why is my From address ignored?

Microsoft Graph sends as the configured sender mailbox. A From header added by another plugin can't change that. Use Reply-To to route replies somewhere else.

Does it work with WooCommerce and contact form plugins?

Yes. Anything that sends with wp_mail() goes through Sendelva, and HTML emails stay HTML.

Is there a size limit?

Attachments can total up to 3 MB, the limit of Microsoft Graph's sendMail request. Larger messages fail with a clear error (and fall back to the default mailer if fallback is on).

What does the plugin store?

Its settings (including the client secret, unless you use the wp-config.php constants), a cached access token, and a log of the last 20 messages with each recipient, subject and result. Uninstalling the plugin deletes all of it, on every site of a multisite network.

I used Graph Mailer. How do I switch?

Sendelva is Graph Mailer under a new name. Install and activate Sendelva: the first time it runs it copies Graph Mailer's settings and send log, and GRAPH_MAILER_* constants in wp-config.php keep working. Then deactivate and delete Graph Mailer. While it's still active, Sendelva shows a link to deactivate it.

Does it track me or contact anything other than Microsoft?

No. It makes no requests of its own except to Microsoft's sign-in and Graph services, and only once it's configured. See "External services" below.

更新日志:

0.4.0 0.3.0 0.2.0 0.1.0