跳到内容

Magic API Email

v1.3.0

MagicWP.io · 2026年3月20日 上架

Send WordPress emails through a transactional API provider: Resend, Mailgun, Postmark, or Mailtrap. No SMTP needed.

正在使用
60+
评分
5.0 / 5
累计下载
1,942
最近更新
2026年11月18日
1 条评价需要 WordPress 6.0+已测试到 7.1.5PHP 8.0+

贡献者

截图

Resend API settings configuration.
Resend API settings configuration.
Mailgun API settings configuration.
Mailgun API settings configuration.

Magic API Email replaces the default WordPress email system (wp_mail()) with a direct API connection to your chosen transactional email provider. No SMTP configuration needed — just paste your API key and you’re ready to go.

Supported Providers:

  • Resend — Modern email API for developers
  • Mailgun — Reliable transactional email
  • Postmark — Fast, deliverable transactional email
  • Mailtrap — Email delivery platform with sandbox testing
  • Plunk — Email API for developers

Features:

  • Per-provider settings — API key, From Email, and From Name are stored independently for each provider. Switching providers never overwrites another provider’s credentials.
  • Full wp_mail() support — attachments, Cc, Bcc, Reply-To, custom headers, and HTML bodies are all passed through to your provider.
  • Fallback providers — if the selected provider fails, optionally try every other provider you have credentials for.
  • Automatic retries — timeouts, rate limits and provider outages can be re-queued instead of losing the email.
  • Background sending — optionally queue email so no page load waits for an API call.
  • Logs and statistics — every attempt is recorded, with a retention window, a one-click purge, and full support for WordPress’s privacy export/erase tools.
  • Deliverability check — SPF, DKIM and DMARC for your From domain, on the settings page and in Site Health, with a warning when the From domain is not your site.
  • Failure alerts — an email when the failure rate crosses a threshold you choose, plus an optional weekly summary.
  • Mailtrap sandbox — point Mailtrap at a sandbox inbox to capture mail instead of delivering it.
  • Test email — Send a test email directly from the settings page to verify your configuration.
  • Secure — All inputs are sanitized and validated. API keys can live in wp-config.php instead of the database and are never printed back into the page.
  • Lightweight — No dependencies, no bloat, no build step.
  • Developer-friendly — Falls back to default wp_mail() if no API key is configured, and still fires the wp_mail filter and wp_mail_failed action.

External services

This plugin acts as a bridge between your WordPress site and your chosen transactional email provider. By design, instead of sending emails via standard wp_mail(), this plugin sends the content of your outgoing emails via an HTTPS API request to the provider you select in the settings.

Depending on your configuration, the plugin connects to one of the following APIs:
* Resend (api.resend.com) – Terms of Service | Privacy Policy
* Mailgun (api.mailgun.net) – Terms of Service | Privacy Policy
* Postmark (api.postmarkapp.com) – Terms of Service | Privacy Policy
* Mailtrap (send.api.mailtrap.io, or sandbox.api.mailtrap.io when a sandbox inbox ID is saved) – Terms of Service | Privacy Policy
* Plunk (api.useplunk.com) – Terms of Service | Privacy Policy

What data is sent and when?
When any plugin or WordPress core feature attempts to send an email (e.g. password resets, contact form submissions, order confirmations), the data (including the recipient’s email address, sender information, email subject, and email body content) is transmitted securely to your configured provider in order to deliver the email. No data is sent if you have not configured an API key for a provider.

The Deliverability Check only reads public DNS records (SPF, DKIM, DMARC) for your From email domain, using your server’s own DNS resolver. It sends no email content anywhere.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums