Magic API Email

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 — 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.
  • 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 | Privacy Policy
* Mailgun (api.mailgun.net) – Terms of Service | Privacy Policy
* Postmark (api.postmarkapp.com) – Terms of Service | Privacy Policy
* Mailtrap (api.mailtrap.io) – 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.

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

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

17 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 6.0+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 8.0+

نسخه ها

0 نسخه