Title: Magic API Email
Author: MagicWP.io
Published: <strong>2026 年 3 月 20 日</strong>
Last modified: 2026 年 3 月 27 日

---

搜尋外掛

![](https://ps.w.org/magic-api-email/assets/banner-772x250.png?rev=3491373)

![](https://ps.w.org/magic-api-email/assets/icon.svg?rev=3491370)

# Magic API Email

 由 [MagicWP.io](https://profiles.wordpress.org/magicwpio/) 開發

[下載](https://downloads.wordpress.org/plugin/magic-api-email.1.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/magic-api-email/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/magic-api-email/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/magic-api-email/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/magic-api-email/#developers)

 [技術支援](https://wordpress.org/support/plugin/magic-api-email/)

## 外掛說明

**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](https://resend.com) — Modern email API for developers
 * [Mailgun](https://mailgun.com) — Reliable transactional email
 * [Postmark](https://postmarkapp.com) — Fast, deliverable transactional email
 * [Mailtrap](https://mailtrap.io) — Email delivery platform with sandbox testing
 * [Plunk](https://useplunk.com) — 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.
 * Test email — Send a test email directly from the settings page to verify your
   configuration.
 * Secure — All inputs are sanitized and validated. API keys are stored as password
   fields.
 * Lightweight — No dependencies, no bloat. Three focused class files.
 * Developer-friendly — Falls back to default `wp_mail()` if no API key is configured.

### 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](https://resend.com/terms) | [Privacy Policy](https://resend.com/privacy)***
Mailgun** (api.mailgun.net) – [Terms of Service](https://www.mailgun.com/terms) 
| [Privacy Policy](https://www.mailgun.com/privacy) * **Postmark** (api.postmarkapp.
com) – [Terms of Service](https://postmarkapp.com/terms-of-service) | [Privacy Policy](https://postmarkapp.com/privacy-policy)***
Mailtrap** (api.mailtrap.io) – [Terms of Service](https://mailtrap.io/terms) | [Privacy Policy](https://mailtrap.io/privacy-policy)***
Plunk** (api.useplunk.com) – [Terms of Service](https://useplunk.com/terms) | [Privacy Policy](https://useplunk.com/privacy)

**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.

## 螢幕擷圖

 * [[
 * Resend API settings configuration.
 * [[
 * Mailgun API settings configuration.

## 安裝方式

 1. Upload the `magic-api-email` folder to the `/wp-content/plugins/` directory, or
    install the plugin through the WordPress Plugins screen directly.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Navigate to **Magic API Email** in the WordPress admin sidebar.
 4. Select your email provider, enter your API key, From Email, and From Name.
 5. Click **Save Settings**.
 6. Use the **Send Test Email** section to verify everything is working.

## 常見問題集

### Which providers are supported?

Resend, Mailgun, Postmark, and Mailtrap 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](https://resend.com) — Create an account and generate
   an API key in the dashboard.
 * **Mailgun:** [mailgun.com](https://mailgun.com) — Create an account, add a sending
   domain, and copy the API key.
 * **Postmark:** [postmarkapp.com](https://postmarkapp.com) — Create a Server and
   copy the Server API Token.
 * **Mailtrap:** [mailtrap.io](https://mailtrap.io) — Create an account and generate
   a sending API token.

### 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?

API errors are written to the WordPress debug log (`wp-content/debug.log`) with 
the prefix `[Magic API Email]`. Enable `WP_DEBUG_LOG` in `wp-config.php` to capture
them.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Magic API Email〉的開發相關工作。

參與者

 *   [ MagicWP.io ](https://profiles.wordpress.org/magicwpio/)

[將〈Magic API Email〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/magic-api-email)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/magic-api-email/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/magic-api-email/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/magic-api-email/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/magic-api-email/)。

## 變更記錄

#### 1.1.0

 * Feature: Email logging — every outgoing email is now recorded in a custom database
   table with recipient, subject, provider, status, and error details.
 * Feature: Logs tab — browse all email logs with a sortable, paginated WP_List_Table
   on the plugin settings page.
 * Feature: Statistics tab — at-a-glance dashboard showing total emails sent, success/
   failure counts, and per-provider usage breakdown.
 * Enhancement: Admin settings page refactored into a native WordPress tabbed interface(
   Settings, Logs, Statistics).
 * Enhancement: Sender class now captures and stores error messages for failed API
   requests.

#### 1.0.12

 * Fix: Versioning conflict in the previous deployment package.

#### 1.0.11

 * Feature: Added plugin banner and screenshots to the repository.
 * Tweak: Updated plugin icon.
 * Tweak: Bumped version to 1.0.11.

#### 1.0.10

 * Feature: Added plugin icon.
 * Tweak: Version bump for assets update.

#### 1.0.9

 * Fix: Removed unnecessary `mu-plugins` directory.
 * Tweak: Updated readme file for better documentation.

#### 1.0.8

 * Fixed menu position to comply with WordPress.org guidelines (moved to Settings
   page).
 * Added explicit documentation for external API services in README.
 * Added `magicwpio` to contributors to verify plugin ownership.

#### 1.0.7

 * Added Plunk provider support.

#### 1.0.6

 * Fixed missing translators comment placement in test email handler.
 * Replaced error_log() with wp_trigger_error() for production-safe logging.
 * Removed discouraged load_plugin_textdomain() call (auto-loaded by WordPress.org).
 * Added wp_unslash() before sanitize_email() on POST data.
 * Deleted .DS_Store hidden file.

#### 1.0.5

 * Renamed plugin to Magic API Email.
 * Added Author URI (https://magicwp.io).
 * Added Text Domain and Domain Path headers for WordPress.org compliance.
 * Added version and copyright footer to the settings page.
 * Improved translators comments throughout for i18n compliance.

#### 1.0.4

 * Added Postmark provider support.

#### 1.0.3

 * Added Mailtrap provider support.

#### 1.0.2

 * Per-provider settings storage — API key, From Email, and From Name are now stored
   independently per provider.
 * Fixed “Request failed” error when sending test emails after provider switch.
 * Fixed fields being cleared when switching providers.
 * Fixed “Settings saved.” notice not appearing on top-level menu pages.

#### 1.0.1

 * Added Mailgun provider support.
 * Fixed duplicate “Settings saved.” notice.
 * Moved plugin to top-level admin menu with email icon.

#### 1.0.0

 * Initial release with Resend provider support.
 * Settings page with API Key, From Email, and From Name.
 * Test email functionality.
 * `wp_mail()` interception via `pre_wp_mail` filter.

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **2 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 8.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/magic-api-email/)
 * 標籤
 * [email](https://tw.wordpress.org/plugins/tags/email/)[mailgun](https://tw.wordpress.org/plugins/tags/mailgun/)
   [postmark](https://tw.wordpress.org/plugins/tags/postmark/)[resend](https://tw.wordpress.org/plugins/tags/resend/)
   [smtp](https://tw.wordpress.org/plugins/tags/smtp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/magic-api-email/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/magic-api-email/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/magic-api-email/reviews/)

## 參與者

 *   [ MagicWP.io ](https://profiles.wordpress.org/magicwpio/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/magic-api-email/)