Linux 软件免费装
Banner图

SwiftTrap for Mailtrap

开发者 simmotorlp
更新时间 2026年5月8日 17:47
PHP版本: 8.0 及以上
WordPress版本: 6.9.4
版权: GPLv2 or later
版权网址: 版权信息

标签

wp-mail mailtrap email-log transactional-email email-api

下载

2.2.2 2.2.0

详情介绍:

SwiftTrap is a drop-in replacement for wp_mail() that routes WordPress email through the Mailtrap Email Sending API instead of SMTP. It is purpose-built for Mailtrap — not a generic SMTP plugin with a Mailtrap preset — so it exposes Mailtrap-native features that SMTP cannot: bulk vs transactional stream routing, email categories, custom variables for tracking, suppression lists, and domain verification status. Why HTTP API instead of SMTP? Why SwiftTrap and not WP Mail SMTP / Post SMTP Features Extensible via filters Privacy This plugin sends email payloads (recipients, subject, body, attachments) to the Mailtrap API at send.api.mailtrap.io and bulk.api.mailtrap.io. Account stats are fetched from mailtrap.io/api/accounts. See the Mailtrap Privacy Policy. No data is sent anywhere else.

安装:

  1. Install from Plugins → Add New and search for SwiftTrap for Mailtrap, or upload the swifttrap-for-mailtrap folder to /wp-content/plugins/.
  2. Activate the plugin.
  3. Go to Mailtrap → Settings.
  4. Paste your Mailtrap Send API token (Mailtrap dashboard → Sending Domains → API Tokens).
  5. Set your verified sender email and name.
  6. Click Send test email to verify delivery.

屏幕截图:

  • Stats page — sending domain verification status and suppression list (bounces, complaints, unsubscribes).
  • Email log with retention controls.
  • Dashboard widget showing integration status, sender, and quick links to Stats and Settings.
  • Test email confirmation.

升级注意事项:

2.2.2 Plugin URI now points to the dedicated landing page on plugins.symonov.com. No code changes. 2.2.1 Documentation-only release. Refreshed readme and confirmed compatibility with WordPress 6.9.4. 2.2.0 WordPress Coding Standards pass — WP_Filesystem API, hardened input sanitization, and improved PHPDoc. No configuration changes required. 2.1.0 New Stats page cards: sending domain verification and suppression list. New filters for Mailtrap template and custom-variables support. 2.0.0 Major update: SDK removed, plugin now uses WordPress HTTP API directly. No configuration changes needed.

常见问题:

Why use SwiftTrap instead of WP Mail SMTP or Post SMTP with Mailtrap credentials?

WP Mail SMTP and Post SMTP route through Mailtrap's SMTP gateway and treat Mailtrap as just another SMTP host. SwiftTrap uses Mailtrap's HTTP Send API, which exposes features SMTP cannot: bulk vs transactional stream routing, categories, custom tracking variables, template UUIDs, and live suppression-list visibility. Use SwiftTrap if you want Mailtrap-native behavior; use a generic SMTP plugin if you want a one-config-fits-all-providers setup.

Does it support Mailtrap email templates?

Yes — use the swifttrap_mailtrap_template filter to send via a template_uuid. The template variables can be passed through Mailtrap's standard template-variables payload.

How does bulk stream routing work?

By default, marketing/promotional categories are routed to bulk.api.mailtrap.io and everything else to send.api.mailtrap.io. Override per-message with the swifttrap_mailtrap_use_bulk_stream filter — useful for batch newsletters from a custom plugin.

Where do I get my API token?

Log in to mailtrap.io, open your sending domain, go to API Tokens, and create a token with sending permissions.

What happens if I disable the plugin or remove the token?

WordPress falls back to its default wp_mail() handler. No emails are silently dropped.

Does the plugin require the Mailtrap PHP SDK?

No. SwiftTrap calls the Mailtrap REST API directly via the WordPress HTTP API. Total plugin size is around 30 KB.

What data is sent externally?

Email data (recipients, subject, body, attachments) goes to send.api.mailtrap.io and bulk.api.mailtrap.io. Account stats are fetched from mailtrap.io/api/accounts. See the Mailtrap Privacy Policy.

Is there an attachment size limit?

Yes — 25 MB per email (matches Mailtrap's API limit).

更新日志:

2.2.2 2.2.1 2.2.0 2.1.0 2.0.0 1.3.0