SendForce Mail SMTP Relay – SMTP and Email API
Reliable SMTP and email-API delivery for WordPress, with email logging, queue, retry, smart routing and failure alerts.
Install in
SendForce Mail Relay is a free, open-source WordPress SMTP and email-API plugin that fixes the “WordPress emails not being delivered” problem. Send WooCommerce order emails, Contact Form 7 / WPForms / Gravity Forms submissions, password resets, registration confirmations, and any other wp_mail() traffic through Amazon SES, SendGrid, Mailgun, Brevo (Sendinblue), Postmark, Zoho ZeptoMail, Gmail API, Microsoft 365, or any standard SMTP server — with full email logging, queue, retry, and failure alerts.
Try the live demo
Launch a full WordPress site with SendForce Mail Relay already set up — no install, nothing to sign up for. It runs in your browser on WordPress Playground, preloaded with two example connections, a Smart Routing rule and a week of email history. Simulation Mode is on, so no email is ever sent.
https://playground.wordpress.net/?blueprint-url=https://wordpress.org/plugins/wp-json/plugins/v1/plugin/sendforce-mail-relay/blueprint.json
Video overview
Why SendForce Mail Relay
- Free and open-source. Every feature is included — no premium tier, no email-volume cap, no provider paywall.
- 24+ providers, one plugin. Built-in presets and HTTP API integrations for major transactional email services — pick what fits your budget, deliverability needs, and region.
- Built-in debugging. Live SMTP debug log on test email, raw API request/response capture in the email log, “Copy Debug Info” button for support tickets, and WP-CLI commands. Designed for developers and agencies who need to diagnose email problems fast.
- Multiple connections with automatic fallback. Configure a primary connection (e.g. Amazon SES) plus a fallback (e.g. Mailgun). If the primary returns an error, the fallback takes over — no email lost.
Supported email providers
HTTP API sending (recommended — faster and more reliable than SMTP):
- Amazon SES (AWS Simple Email Service)
- SendGrid (by Twilio)
- Mailgun (by Sinch)
- Brevo (formerly Sendinblue)
- SparkPost
- Postmark
- Zoho ZeptoMail
- Microsoft 365 / Outlook (Microsoft Graph API)
- Gmail / Google Workspace (Gmail API)
- SMTP2GO
- SMTP.com
- Elastic Email
- SocketLabs
- Moosend
- SendLayer
- Mailjet
- MailerSend
- Mandrill (by Mailchimp)
- Resend
- Netcore Email API (formerly Pepipost)
SMTP sending (works with any provider, including custom servers):
- Gmail / Google Workspace SMTP (smtp.gmail.com)
- Microsoft 365 / Outlook SMTP (smtp.office365.com)
- Yahoo Mail SMTP
- Zoho Mail SMTP
- Turbo SMTP
- Any other SMTP server (host, port, username, password)
Features
- Multiple connections with automatic fallback — configure a primary connection (e.g. Amazon SES) plus a fallback (e.g. Mailgun, SMTP, or PHP mail). If the primary returns an error, the fallback is attempted automatically. Both attempts are logged so you have a full audit trail; recovered emails carry a “Recovered via fallback” badge in the log detail view.
- Smart Routing Rules — send different emails through different connections based on rules you define. Match by recipient domain, recipient pattern (glob), sender email or domain, source plugin (auto-detected for WooCommerce, Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Fluent Forms, Forminator, Easy Digital Downloads, MemberPress, LearnDash, MailPoet, BuddyPress, bbPress and more), subject contains, time of day, or weekday. Rules are evaluated top-down (first match wins) and send through the connection you choose (including a PHP Mail connection). Includes inline rule editor, master enable/disable toggle, “Test Routing” tool, and a “via rule:” badge on the Email Log so you can see exactly which rule fired for any send.
- One-click provider presets — pre-filled host, port, encryption, and API endpoint for every supported provider. Just paste your API key or password.
- Email Log — every outgoing email logged with status, recipient, subject, headers, error message, and timestamp. Filter by status, search by keyword, filter by date range, export to CSV or JSON.
- Email Queue with retry and per-connection pacing — queue mode prevents rate-limit errors and timeouts on bulk sends. Set a “Max emails per minute” on each connection (e.g. a slow pace for Gmail API, a fast one for Amazon SES). Failed emails auto-retry on exponential backoff (5 min 15 min 45 min).
- Email Test page — send a test email with live SMTP debug log output. Diagnose connection problems instantly.
- Failure alerts — push delivery failures to Telegram, Slack, Discord, Microsoft Teams, Google Chat, Pushover, or any custom webhook.
- Sender Identity override — force every email to use a custom From name and From address site-wide.
- Conflict detection — warns you if another SMTP plugin (WP Mail SMTP, FluentSMTP, Easy WP SMTP, Post SMTP, etc.) is active so you can deactivate it before things break.
- Import from WP Mail SMTP, FluentSMTP, Easy WP SMTP, Post SMTP, SMTP Mailer and WP SMTP — switch in one click: connections, credentials, sender identity, fallback and per-sender routing (FluentSMTP, WP SMTP) come across, with a preview first and nothing in SendForce overwritten.
- Encrypted credential storage — SMTP passwords and API keys are encrypted at rest using AES-256-CBC with a dedicated per-site key, so they survive security-key/salt regeneration.
- WP-CLI commands — send test emails, process and inspect the queue, view or clean up the email log, and export system info from the command line. See the FAQ for the full list.
- Developer hooks —
sendforce_before_send,sendforce_after_send,sendforce_log_entry,sendforce_api_request,sendforce_api_responsefor extending the plugin without forking. WP_DEBUG_LOGintegration — optional mirroring of SMTP and API debug output todebug.log.- Automatic log cleanup — configurable retention period (default 30 days).
- Privacy-friendly — optional disable of email-body logging for GDPR / privacy compliance.
- WordPress Multisite — Network Activate once and every site sets itself up automatically, including sites added later. Each site has its own connections, logs and queue; deleting a site or uninstalling the plugin cleans up every site’s data.
Works with all major WordPress plugins
SendForce Mail Relay hooks into WordPress’s core wp_mail() function, so it works with every plugin that sends email — including WooCommerce, Easy Digital Downloads, Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Fluent Forms, Forminator, MemberPress, LearnDash, BuddyPress, bbPress, MailPoet (transactional), and any custom plugin or theme that uses wp_mail().
External Services
SendForce Mail Relay is an email-delivery plugin. It does NOT connect to any external service automatically. A connection is made ONLY after you explicitly configure a provider and either (a) WordPress sends an outgoing email, or (b) you click “Send Test Email”, or (c) you enable a notification channel and an email-failure alert is dispatched.
For each configured email provider, the data sent on every send is the same set of fields WordPress would otherwise hand to the local mail() function: the recipient address(es), CC, BCC, Reply-To, From name/address, subject, message body, headers, and attachments. No additional telemetry or analytics is transmitted by this plugin.
For each configured notification channel (Telegram, Slack, Discord, Microsoft Teams, Google Chat, Pushover, custom Webhook), the data sent is a short status message you compose in the plugin (default: failed-delivery summary or daily summary).
Email-delivery providers (configurable in Settings Connections)
SendGrid (by Twilio)
* Service: https://sendgrid.com
* When data is sent: every WordPress email when SendGrid is the active connection, plus on test-email click.
* Endpoint: https://api.sendgrid.com/v3/mail/send
* Privacy Policy: https://www.twilio.com/en-us/legal/privacy
* Terms of Service: https://www.twilio.com/en-us/legal/tos
Mailgun (by Sinch)
* Service: https://www.mailgun.com
* When data is sent: same as above, but to Mailgun.
* Endpoint: https://api.mailgun.net/v3/{domain}/messages (US) or https://api.eu.mailgun.net/v3/{domain}/messages (EU).
* Privacy Policy: https://www.mailgun.com/legal/privacy-policy/
* Terms of Service: https://www.mailgun.com/legal/terms/
Amazon SES (AWS Simple Email Service)
* Service: https://aws.amazon.com/ses/
* When data is sent: same.
* Endpoint: https://email.{region}.amazonaws.com/v2/email/outbound-emails (region you select).
* Privacy Policy: https://aws.amazon.com/privacy/
* Terms of Service: https://aws.amazon.com/service-terms/
Brevo (formerly Sendinblue)
* Service: https://www.brevo.com
* Endpoint: https://api.brevo.com/v3/smtp/email
* Privacy Policy: https://www.brevo.com/legal/privacypolicy/
* Terms of Service: https://www.brevo.com/legal/termsofuse/
SparkPost
* Service: https://www.sparkpost.com
* Endpoint: https://api.sparkpost.com/api/v1/transmissions
* Privacy Policy: https://www.sparkpost.com/policies/privacy/
* Terms of Service: https://www.sparkpost.com/policies/tou/
Postmark
* Service: https://postmarkapp.com
* Endpoint: https://api.postmarkapp.com/email
* Privacy Policy: https://postmarkapp.com/privacy-policy
* Terms of Service: https://postmarkapp.com/terms-of-service
Elastic Email
* Service: https://elasticemail.com
* Endpoint: https://api.elasticemail.com/v4/emails
* Privacy Policy: https://elasticemail.com (linked from the site footer; Elastic Email does not publish a stable deep-link URL)
* Terms of Service: https://elasticemail.com (linked from the site footer; Elastic Email does not publish a stable deep-link URL)
SMTP2GO
* Service: https://www.smtp2go.com
* Endpoint: https://api.smtp2go.com/v3/email/send
* Privacy Policy: https://www.smtp2go.com/privacy/
* Terms of Service: https://www.smtp2go.com/terms/
Netcore Email API (formerly Pepipost)
* Service: https://netcorecloud.com
* Endpoint: https://emailapi.netcorecloud.net/v5/mail/send
* Privacy Policy: https://netcorecloud.com/privacy-policy
* Terms of Service: https://netcorecloud.com (request the latest terms via the contact form on the homepage; Netcore does not publish a stable terms-of-use URL).
SMTP.com
* Service: https://www.smtp.com
* Endpoint: https://api.smtp.com/v4/messages
* Privacy Policy: https://www.smtp.com/policies/privacy-policy/
* Terms of Service: https://www.smtp.com/legal/terms/
SocketLabs
* Service: https://www.socketlabs.com
* Endpoint: https://inject.socketlabs.com/api/v1/email
* Privacy Policy: https://www.socketlabs.com/legal/privacy-policy/
* Terms of Service: https://www.socketlabs.com/legal/
Moosend (by Sitecore)
* Service: https://moosend.com
* Endpoint: https://api.moosend.com/v3/
* Privacy Policy: https://moosend.com/privacy-policy/
* Terms of Service: https://moosend.com/terms/
SendLayer
* Service: https://sendlayer.com
* Endpoint: https://console.sendlayer.com/api/v1/email
* Privacy Policy: https://www.sendlayer.com/privacy-policy/
* Terms of Service: https://www.sendlayer.com/terms-of-service/
Mailjet (by Sinch)
* Service: https://www.mailjet.com
* Endpoint: https://api.mailjet.com/v3.1/send
* Privacy Policy: https://sinch.com/legal/privacy-notice/
* Terms of Service: https://sinch.com/legal/
MailerSend
* Service: https://www.mailersend.com
* Endpoint: https://api.mailersend.com/v1/email
* Privacy Policy: https://www.mailersend.com/legal/privacy-policy
* Terms of Service: https://www.mailersend.com/legal/terms-of-use
Mandrill (by Mailchimp)
* Service: https://mailchimp.com/developer/transactional/
* Endpoint: https://mandrillapp.com/api/1.0/messages/send.json
* Privacy Policy: https://mailchimp.com/legal/privacy/
* Terms of Service: https://mailchimp.com/legal/terms/
Resend
* Service: https://resend.com
* Endpoint: https://api.resend.com/emails
* Privacy Policy: https://resend.com/legal/privacy-policy
* Terms of Service: https://resend.com/legal/terms-of-service
Zoho ZeptoMail
* Service: https://www.zoho.com/zeptomail/
* Endpoint: https://api.zeptomail.com/v1.1/email
* Privacy Policy: https://www.zoho.com/privacy.html
* Terms of Service: https://www.zoho.com/zeptomail/terms.html
Microsoft 365 / Outlook (Microsoft Graph API and SMTP)
* Service: https://www.microsoft.com/microsoft-365
* Endpoint (API): https://graph.microsoft.com/v1.0/users/{user}/sendMail (OAuth token from https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token)
* Endpoint (SMTP): smtp.office365.com:587
* Privacy Policy: https://privacy.microsoft.com/en-US/privacystatement
* Terms of Service: https://www.microsoft.com/en-us/servicesagreement/
Gmail / Google Workspace (Gmail API and SMTP)
* Service: https://workspace.google.com
* Endpoint (API): https://gmail.googleapis.com/gmail/v1/users/me/messages/send (OAuth token from https://oauth2.googleapis.com/token)
* Endpoint (SMTP): smtp.gmail.com:587
* Privacy Policy: https://policies.google.com/privacy
* Terms of Service: https://policies.google.com/terms
Notification channels (configurable in Settings Alerts)
These services are contacted ONLY when a notification channel is enabled AND a delivery failure (or daily-summary) event triggers an alert. The data sent is the short status text shown in the plugin’s alert preview.
Telegram (Bot API)
* Service: https://telegram.org
* When data is sent: when a Telegram channel is enabled, a failed-delivery alert or daily-summary alert is generated.
* Endpoint: https://api.telegram.org/bot{token}/sendMessage
* Privacy Policy: https://telegram.org/privacy
* Terms of Service: https://telegram.org/tos
Pushover
* Service: https://pushover.net
* Endpoint: https://api.pushover.net/1/messages.json
* Privacy Policy: https://pushover.net/privacy
* Terms of Service: https://pushover.net/terms
Slack (Incoming Webhooks)
* Service: https://slack.com
* Endpoint: the webhook URL you paste (https://hooks.slack.com/services/…).
* Privacy Policy: https://slack.com/trust/privacy/privacy-policy
* Terms of Service: https://slack.com/legal
Discord (Webhooks)
* Service: https://discord.com
* Endpoint: the webhook URL you paste (https://discord.com/api/webhooks/…).
* Privacy Policy: https://discord.com/privacy
* Terms of Service: https://discord.com/terms
Microsoft Teams (Incoming Webhooks)
* Service: https://www.microsoft.com/microsoft-teams/
* Endpoint: the Teams webhook URL you paste.
* Privacy Policy: https://privacy.microsoft.com/en-US/privacystatement
* Terms of Service: https://www.microsoft.com/en-us/servicesagreement/
Google Chat (Incoming Webhooks)
* Service: https://chat.google.com
* Endpoint: the Google Chat webhook URL you paste.
* Privacy Policy: https://policies.google.com/privacy
* Terms of Service: https://workspace.google.com/terms/premier_terms.html
Custom Webhook
* When data is sent: when a custom Webhook channel is enabled and an alert is generated, a JSON payload is POSTed to the URL you paste.
* Endpoint: the URL you paste.
* Privacy Policy / Terms: governed by the operator of the URL you provide.
Bundled third-party libraries (no network call)
Chart.js (https://www.chartjs.org) — bundled locally at assets/js/chart.umd.min.js (v4.5.0). Used to render the email-stats chart on the dashboard. Loaded entirely from your own server; no CDN call is made.
Privacy Policy
SendForce Mail Relay stores the following data in your WordPress database:
- Email logs (if logging is enabled): recipient email address, subject, headers, email body (optional), sent status, error messages, and timestamps.
- Email queue (if queue is enabled): same data as above, plus retry attempt count and next retry time.
- Plugin settings: your SMTP host, port, username, and encrypted password or API key.
Email body logging can be disabled in Settings > Queue & Logging. Log entries are automatically deleted after the configured retention period (default: 30 days). All data is deleted when the plugin is uninstalled.
We recommend adding a note to your site’s privacy policy if you log email content, informing users that outgoing email metadata may be stored.
Written by Joobi from the project's own listing. See the source page
For the complete release history with full detail on every change, see the full changelog on GitHub (also bundled with the plugin as CHANGELOG.md) or open the What’s New tab inside SendForce in your WordPress admin. The section below is condensed to fit within WordPress.org’s 5,000-word changelog limit.
1.2.3
- New: Import from Post SMTP, SMTP Mailer and WP SMTP (Kadence Mail): connections, credentials, sender, fallback and WP SMTP’s per-sender routing, with a preview first and nothing in SendForce overwritten.
- Fixed: A Reply-To written with a name, like
ABC Shop <shop@example.com>, made Brevo reject the email (HTTP 400) and was sent wrongly to several other API providers. The name and address are now sent separately, and Amazon SES and Gmail encode non-English names correctly. The SMTP fallback no longer drops named recipients. Thanks to @webskipperdk for the report. - Fixed: Saving a new connection could create it twice if the same request reached the server twice, for example a browser retry, or clicking Save again after a “Request failed” message when the save had gone through.
- Changed: The 1.0.x entries in this changelog are now one summary, and old upgrade notices are removed, to stay within WordPress.org’s limit. The full history is in CHANGELOG.md.
1.2.2
- Improved: General Settings are now grouped into Sending, Email Log, Email Queue and Advanced. Each group shows its current state (for example “On · 30 days”) so you can find any setting at a glance, and the panel no longer hides its last settings and Save button on smaller screens.
- New: choose how often the Email Queue sends: every 1, 5, 10, 15 or 30 minutes (Settings Email Queue Send Interval). Every minute stays the default. Thanks to @dimalifragis for the suggestion.
- Fixed: emails from plugins that mark HTML only through WordPress’s
wp_mail_content_typefilter, such as Directorist, arrived as plain text showing raw HTML code when the Email Queue was on or an API provider was used. SendForce now decides between HTML and plain text exactly the way WordPress does. Thanks to @dimalifragis for the report.
1.2.1
- Fixed: with “Multi-Part Plain Text” turned on, plain-text emails (password resets, notifications, the test email) were delivered as HTML on SMTP and PHP Mail connections. The option now only applies to HTML emails, as intended. Thanks to @dimalifragis for the report.
- Fixed: a PHP deprecation notice (“Creation of dynamic property WP_PHPMailer::$Exceptions”) written to the debug log on every SMTP send on PHP 8.2 and later.
- New: a Simulation Mode badge in the SendForce header. When sending is simulated, every SendForce screen now says so — previously the only sign was the toggle buried in Settings, so a site could quietly stop sending email and look perfectly normal. Click the badge to go straight to the setting.
- New: the Email Test tab now warns you before you send, instead of only refusing the test afterwards, with a button that takes you straight to the setting.
1.2.0
- Fixed: Microsoft 365 (Graph API) sent emails without their attachments — the files were accepted and then left out of the message entirely. Thanks to @ydekinder for the detailed report.
- Fixed: Zoho ZeptoMail dropped attachments in the same way.
- Fixed: attachments over Microsoft’s 3 MB limit now give a clear message naming the files, instead of a confusing server error.
- New: a Setup screen after activation. Installing SendForce now opens a welcome screen that leads with migration — every SMTP plugin it can import from is listed with “Import settings” and “Deactivate” — followed by the two steps that matter: connect a provider, send a test email.
- New: the redirect happens once, for the admin who activated the plugin. It is skipped on bulk activation, on network activation, and on any site that already has a connection, so updates and reactivations never hijack your page.
- Changed: the “another SMTP plugin is active” warning now appears only on SendForce’s own screens instead of every page in wp-admin.
- Changed: once you have imported from another plugin, its row shows an “Imported” badge and the button becomes “Check again”, instead of still reading “Import settings”.
- Fixed: uninstall now removes every cache and flag the plugin creates — the dashboard and daily statistics caches, alert throttles and the onboarding records were previously left behind.
- Fixed: admin scripts and styles are now cache-busted per file, so browsers never serve an outdated copy after the plugin’s files change.
- Fixed: finishing setup now ends on a “You’re all set” screen instead of leaving you on the test-email tab, and the feature cards appear once you are done rather than before you start.
- Fixed: the setup wizard now returns you to itself after you save your first connection, instead of leaving you on the Settings tab with the wizard unfinished.
- New: once you have a connection, the Setup screen steps aside for good — SendForce opens on the Dashboard instead, including after a reactivation.
- Fixed: importing from the Setup screen now refreshes it, so the steps and progress reflect the connection you just imported, with a summary of what came across.
1.1.3
- New:
wp sendforce import list|preview|run <source>imports from the command line, with the same preview and confirmation as the admin UI. - Note: if your SparkPost account is on the EU region, the import now tells you SendForce only supports the US region, instead of copying a key that cannot send.
- New: Import from WP Mail SMTP, FluentSMTP and Easy WP SMTP, including on Multisite. While one of them is active, an “Import settings” button (in the conflict notice, and on the Settings tab) previews what will come across, then adds its connections, credentials, sender identity and fallback to SendForce; FluentSMTP per-sender routing becomes Smart Routing rules. Existing SendForce settings are never overwritten and re-importing doesn’t create duplicates.
- Changed: More of the plugin is translatable — WP-CLI messages, Gmail and Microsoft 365 sign-in errors, and a few remaining admin labels now go through WordPress translation.
- Changed: The WordPress admin sidebar label is now “SendForce” (was “SF Mail Relay”).
1.1.2
- New: WordPress Multisite support. After Network Activate, every site sets itself up on its first visit, including sites created later. Previously only the main site was set up, so other sites’ emails were not logged or queued.
- New: Deleting a site from a network now removes its SendForce data, and uninstalling the plugin cleans up every site.
- Fixed: On updates, setup now completes on the first request of any kind, not only when an admin opens the dashboard.
- Fixed: Uninstalling now also removes the queue’s per-minute pacing counters.
- Fixed: With an API connection (SendGrid, Amazon SES, Mailgun and others) and no Sender Identity set, the From address chosen by the sending plugin — such as WooCommerce’s store address — was replaced with the site’s admin email. API connections now keep it, the same as SMTP connections, including on Smart Routing rules. Gmail and Microsoft 365 API connections are unchanged, as they always send as the connected account.
- Docs: Added a WP-CLI FAQ listing every
wp sendforcecommand.
1.1.1
- Docs: Added a video overview to the plugin description.
1.1.0
- New: Per-connection sending pace. Set “Max emails per minute” on any connection and the Email Queue paces sends through it — e.g. a slow pace for the Gmail API and a fast one for Amazon SES. Connections are paced independently, and a backlog on one never holds up the others.
- Improved: While enabled, the Email Queue now runs every minute (was every 5 minutes), and each run stops after about 20 seconds so it stays within host PHP time limits. Sites that don’t use the queue keep the 5-minute check.
- Improved: The Queue tab now shows each failed or retrying email’s last provider error.
- Changed: The roadmap on the What’s New tab no longer shows target dates or versions, and reflects what has shipped.
- Fixed: With the Email Queue enabled, emails sent through an API connection (Gmail API, Amazon SES, SendGrid, etc.) were delivered immediately instead of being queued, and an API email processed from the queue could also be sent a second time through PHP mail.
- Fixed: If two queue runs overlapped (for example a scheduled run and “Process Queue Now”), the same email could be sent twice. Each email is now claimed by exactly one run.
- Fixed: With the Email Queue enabled, a Smart Routing rule could leave its connection active for later emails in the same page load.
1.0.0 – 1.0.40
- The first release line: SMTP and email-API sending for 24+ providers, Microsoft 365 and Gmail API, automatic fallback connection, Email Log, Email Queue with retries, failure alerts, WP-CLI commands, developer hooks and encrypted credential storage. Every 1.0.x change is listed in the full changelog on GitHub.
Follow this listing's changes (Atom feed)