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 — R
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.0 and PHP 8.0.
SourceWordPress plugins · Dec 6, 2026
01 / Source details
Aboutthistool.
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.
See it in action
Screenshots & previews.
Resend API settings configuration.Mailgun API settings configuration.
02 / Source details
Gettingstarted.
01Upload the magic-api-email folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen directly.
02Activate the plugin through the Plugins screen in WordPress.
03Navigate to Magic API Email in the WordPress admin sidebar.
04Select your email provider, enter your API key, From Email, and From Name.
05Click Save Settings .
06Use the Send Test Email section to verify everything is working.
03 / Source details
Frequently asked questions.
Which providers are supported?
Resend, Mailgun, Postmark, Mailtrap, and Plunk are currently supported.
Do I need to configure SMTP?
No. Magic API Email sends emails directly through each provider’s REST API, so no SMTP setup is required.
Will switching providers erase my other provider’s settings?
No. Each provider’s API key, From Email, and From Name are stored separately. You can switch between providers freely without losing any credentials.
Where do I get an API key?
Resend: resend.com — Create an account and generate an API key in the dashboard. Mailgun: mailgun.com — Create an account, add a sending domain, and copy the API key. Postmark: postmarkapp.com — Create a Server and copy the Server API Token. Mailtrap: mailtrap.io — Create an account and generate a sending API token. Plunk: useplunk.com — Create a project and copy the secret API key.
Can I keep my API key out of the database?
Yes. Define it in wp-config.php and it takes precedence over anything saved on the settings page:
Open the Deliverability Check on the Settings tab (or Tools → Site Health). It reads your From domain’s SPF, DKIM and DMARC records and warns when the From domain is not your site, the most common cause of rejected or spam-foldered mail. DKIM uses a selector your provider chooses, so a DKIM warning can be a false alarm: confirm the domain is verified in your provider dashboard.
Can I use a Mailgun EU domain?
Yes. Add define( 'MAGIC_API_EMAIL_MAILGUN_EU', true ); to wp-config.php .
Can I let editors manage the plugin settings?
Yes. Filter the capability: add_filter( 'magic_api_email_capability', fn() => 'edit_pages' ); . The default is manage_options .
How do alerts work?
Under Settings → Alerts turn on the failure alert and pick a threshold. An hourly WP-Cron job checks the last 24 hours and emails you at most once a day. Alerts go out through your normal email setup, so they cannot arrive if every provider is down.
Does it support attachments, Cc, Bcc and Reply-To?
Yes, on every provider except Plunk, whose API has no attachment or Cc/Bcc support. When Plunk is selected, each Cc/Bcc address receives its own copy and any attachments are reported on the log entry instead of being dropped silently.
What happens if a send fails?
By default the failure is logged and wp_mail_failed is fired. Under Settings → Delivery & Reliability you can additionally enable fallback providers (try every other provider that has credentials saved) and retries (re-queue timeouts, rate limits and server errors, up to three attempts).
What happens if I don’t configure the plugin?
If the API key or From Email is empty, the plugin falls back to WordPress’s default email handling — no emails are lost.
Does this plugin support HTML emails?
Yes. If WordPress or another plugin sends an email with a Content-Type: text/html header, Magic API Email will send it as HTML to the provider.
Where are errors logged?
Every send attempt — successful or not — is recorded on the Logs tab of the plugin settings page, together with the provider’s error message. API errors are additionally passed to wp_trigger_error() , so they appear in the WordPress debug log ( wp-content/debug.log ) when WP_DEBUG_LOG is enabled in wp-config.php .
Can I stop the log table from growing forever?
Yes. Choose a retention window under Settings → Delivery & Reliability and a daily job trims anything older. There is also a Clear All Logs button on the Logs tab. Logs are exported and erased through WordPress’s own privacy tools.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati