Linux 软件免费装
Banner图

MME-Mail to SMTP

开发者 mmeprowp
更新时间 2026年10月7日 16:48
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gmail smtp wp_mail mailgun sendgrid

下载

0.16.0 0.17.1 0.17.2 0.17.3 0.17.4

详情介绍:

WordPress sends its email with wp_mail(), which hands the message to the web server's own mail function. On most hosts that means it lands in spam, or does not arrive at all - and nothing on the site says so, because almost no WordPress code checks what wp_mail() returned. Sites routinely go weeks before somebody notices the receipts stopped arriving. This plugin does two things about that. It routes your mail through a real mail service, and it makes failure visible. Why this one and not one of the others There are a great many SMTP plugins. Four things here are deliberate choices the others mostly do not make. Google Workspace is also handled with a service account and domain-wide delegation, which means no consent screen, no refresh token, and nothing that quietly expires in seven days. Connections One connection is configured at a time, and every message goes out over it. What it does about failure Also

安装:

  1. Install and activate the plugin.
  2. Go to MME-Mail to SMTP in the admin menu. The setup wizard opens on first run.
  3. Choose a mail service and enter its credentials, or sign in to Google.
  4. Send the test message the wizard offers. If it arrives, you are done.
Credentials can also be set in wp-config.php instead of the database - for example define( 'MMOA_GOOGLE_SA_PRIVATE_KEY', '...' );. The plugin shows a field as pinned when a constant is set for it.

屏幕截图:

  • The dashboard answers the only question that matters: is mail being delivered right now, what was the last error, and what is waiting in the retry queue.
  • A configured Google Workspace connection. The signing key is stored encrypted and never shown back; verify and send a test without leaving the screen.
  • The setup wizard. Choose a service, enter its credentials, verify them against the provider, and send one real message - in that order, so you find out it works before you rely on it.
  • Settings. How many failures in a row count as an outage, how long the retry queue holds a message, and the privacy tools WordPress already gives you.

常见问题:

Do I need a Google Workspace account?

For the service account connection, yes - domain-wide delegation is a Workspace feature. A plain @gmail.com account uses the Gmail OAuth connection instead, which works but keeps a refresh token.

My Gmail connection stops working every week.

Your Google Cloud consent screen is still in Testing status, which expires refresh tokens every seven days. Publish it to In production and reconnect.

Why does the service account connection say it cannot impersonate the mailbox?

Its client ID has not been authorized in Google Workspace Admin under Security, API Controls, Domain-wide Delegation, with the https://www.googleapis.com/auth/gmail.send scope. The error message names this too.

How large can attachments be?

About 2 MB. The API caps a single request at 4-5 MB, and a message on this path is base64-encoded twice, so the usable payload is roughly half the nominal limit. Oversized messages are rejected before sending, with a message saying so, rather than failing on the wire.

Where did my mail go? Is there a log?

Not in this plugin. It records no copy of what it sent - a mail log holding recipients and subjects is a standing liability, and this one deliberately does not keep one. What it does tell you is whether sending is currently working, what the last error was, and what is waiting in the retry queue.

Can another mailer plugin be active at the same time?

No. WordPress lets exactly one plugin take over sending, so one of the two would be configured and doing nothing - and which one wins depends on load order rather than on anything you chose. The plugin detects the common ones and says so on screen.

更新日志:

0.17.4 0.17.3 0.17.2 0.17.1 0.17.0 0.16.0