SMTPfast
Send every WordPress email through the SMTPfast email API.
Install in
WordPress sends email with the PHP mail() function by default. Many hosts block it, and mail that does go out often lands in spam because it is not signed for your domain.
SMTPfast sends every email that WordPress, your theme or your plugins send with wp_mail() through the SMTPfast email API, from your own verified domain with SPF, DKIM and DMARC in place. It uses the HTTPS API, not SMTP, so it works on hosts that block SMTP ports.
What it does
- Sends all
wp_mail()email through the SMTPfast API: To, Cc, Bcc, Reply-To, HTML or plain text, multipart bodies, attachments, embedded images and custom headers. - Works with WooCommerce, Contact Form 7, WPForms, Gravity Forms, password resets, new user emails and any other plugin that uses
wp_mail(). - Shows the SPF, DKIM and DMARC status of your SMTPfast sending domains.
- Sends a test email from the settings page.
- Keeps a log of the last 100 emails with their live delivery status from SMTPfast. The log stores no addresses, subjects or message content.
- Never drops an email silently. When the API refuses an email or cannot be reached,
wp_mail()returns false, the standardwp_mail_failedaction fires and an admin notice shows the error. You can turn on a fallback to the default WordPress mailer. - When a plugin sets a From address on a domain you have not verified, such as a contact form that sends “from” the visitor, the plugin sends from your configured address and keeps the original sender as Reply-To.
- Lets you keep the API key out of the database with a constant in
wp-config.php.
Developer hooks
smtpfast_enabled(filter): return false to send one email the default WordPress way.smtpfast_email_payload(filter): change the API request body, for example to add tags.smtpfast_http_timeout(filter): API timeout in seconds, 15 by default.- Per email headers:
X-SMTPfast-Category: transactional|marketing,X-SMTPfast-Track-Opens: true|falseandX-SMTPfast-Track-Clicks: true|false. The plugin turns them into API fields and does not send them as headers.
External services
This plugin connects to the SMTPfast API at https://smtpfa.st/api/v1 to send your site’s email. It is the whole purpose of the plugin and nothing is sent until you add an API key.
- When an email is sent with
wp_mail(): the sender, recipients (To, Cc, Bcc, Reply-To), subject, message body, attachments and custom headers of that email go toPOST /v1/emails, together with your API key. - On the plugin settings page: the plugin asks
GET /v1/mefor the key’s scopes and plan,GET /v1/domainsfor the status of your sending domains, andGET /v1/emailsfor the delivery status of recent emails. These requests send only your API key.
The plugin sends no usage data or analytics of its own. SMTPfast is provided by SMTPfast: Terms of Service, Privacy Policy.
Written by Joobi from the project's own listing. See the source page
1.0.1
- The send-failure notice now shows only on the Dashboard, the Plugins screen and the SMTPfast settings page.
1.0.0
- First release: sends all
wp_mail()email through the SMTPfast API, with domain status, a test email, a send log, failure notices and an optional fallback.
Follow this listing's changes (Atom feed)