← All plugin documentation

Sendwell SMTP

Guide for version 1.0.0 · WordPress 6.0+ · PHP 7.4+

Sendwell SMTP sends your site’s emails (password resets, orders, form notifications) through an SMTP server or an email API instead of your web host’s mail function, so they arrive. It logs every email, sends test emails with plain-English advice, checks your domain’s SPF, DKIM and DMARC records, and can import your WP Mail SMTP settings in one click.

The free version includes every provider, From overrides, test emails, a 30-day email log, the DNS check, the WP Mail SMTP import and wp-config.php settings. Pro adds email content in the log (read, resend, CSV export), a backup connection, failure alerts by email and webhook, a weekly summary, and a choice of how long the log is kept. Get Pro or read more.

1. Install and activate

  1. Go to Plugins → Add New Plugin → Upload Plugin, choose the Sendwell SMTP zip (download the free version, or for Pro use the one from your purchase email), then Install Now and Activate.
  2. Open Sendwell SMTP in the admin menu. It has four screens: Settings, Email log, Send a test and Tools.

Until you save the settings (or import from WP Mail SMTP), Sendwell doesn’t change how your site sends email, and a notice reminds you to set it up. The status at the top of each screen says Not sending yet, Sending through … or All emails blocked.

2. Switching from WP Mail SMTP

  1. Install and activate Sendwell SMTP. You can leave WP Mail SMTP active for now.
  2. Go to Sendwell SMTP → Tools and click Import WP Mail SMTP settings.
  3. Sendwell copies the mailer, its saved password or API key, the From email and name and their “force” options, and the Return-Path setting. It starts sending straight away. For an SMTP connection it also signs in to the server to check the details.
  4. Go to Send a test and send yourself a test email.
  5. Deactivate WP Mail SMTP. Sendwell shows a reminder while WP Mail SMTP is still active, so the two don’t clash.

WP Mail SMTP settings defined as WPMS_ constants in wp-config.php are imported too. The imported values are saved in Sendwell’s own settings (secrets encrypted); to keep a password out of the database, define it as a Sendwell constant instead and remove the old WPMS_ lines.

3. Choose how to send

On Sendwell SMTP → Settings, under How should your site send email?, pick one:

OptionWhen to use it
SMTP serverYou already have email on your domain (Google Workspace, Microsoft 365, Zoho, your host, NameCrane), or a sending service gave you SMTP details.
Amazon SES, Brevo, Mailgun, Postmark, Resend, SendGrid, SMTP2GO, SparkPostEmail APIs. More reliable for shops and busy sites, and they work even when your host blocks SMTP ports, because they send over normal web traffic.
WordPress default (PHP mail)Your host’s mail function, as without an SMTP plugin. Often lands in spam; use it only if nothing else works.

Fill in the fields that appear, then click Save. Saving switches sending on. Passwords and API keys are stored encrypted; leave a password field blank to keep the saved one.

4. Set up an SMTP server

  1. Choose SMTP server, then pick your Email host. The preset fills in the host, port and encryption and shows a hint.
  2. Enter the Username (usually your full email address) and Password.
  3. Click Save. Sendwell signs in to the server and tells you whether it worked.
Email hostServerNotes
Gmail / Google Workspacesmtp.gmail.com, 587, STARTTLSNeeds an app password: turn on 2-step verification, then create one under Google Account → Security → App passwords. Your normal password won’t work.
Outlook / Microsoft 365smtp.office365.com, 587, STARTTLSSMTP AUTH must be switched on for the mailbox in the Microsoft 365 admin centre. Microsoft is phasing out password sign-in for SMTP, so an email API is the safer long-term choice.
Zoho Mailsmtp.zoho.eu, 465, SSL/TLSUse smtp.zoho.com for US accounts. Needs an app-specific password if two-factor sign-in is on.
NameCrane CraneMailYour server, 465, SSL/TLSThe server name (such as eu1.workspace.org) is in the Connection Guide in your CraneMail portal. Sign in with the full mailbox address.
Brevo SMTPsmtp-relay.brevo.com, 587, STARTTLSUsername is your Brevo SMTP login; the password is an SMTP key, not your account password.
Amazon SES SMTPemail-smtp.eu-west-2.amazonaws.com, 587, STARTTLSChange the region in the host to yours and use SES SMTP credentials, not your IAM access key.
Mailjetin-v3.mailjet.com, 587, STARTTLSUsername is the API key; password is the secret key.
OtherFrom your email hostLook for “outgoing mail server” or “SMTP” settings.

Encryption and port

Match the encryption to the port: STARTTLS for 587, SSL/TLS for 465, None for 25. With None, Use STARTTLS when the server offers it stays on unless your server has a broken certificate. Untick Sign in to the server only for a relay that doesn’t need a login.

5. Set up an email API

For every API: verify your sending domain with the provider first (it gives you DNS records to add), create an API key with permission to send, choose the provider in Sendwell, paste the key and save. Then send a test.

ProviderFieldsNotes
Amazon SESAWS region, Access key ID, Secret access keyNeeds an AWS account, a verified domain and an IAM key allowed to use ses:SendEmail. New SES accounts start in the sandbox and can only send to verified addresses until AWS lifts it.
BrevoAPI keyAn API key (starts xkeysib-), not the SMTP key. Free plan: 300 emails a day.
MailgunSending domain, Region, API keyEnter the domain exactly as Mailgun shows it (such as mg.example.com) and pick the region your account is in (US or EU).
PostmarkServer API token, Message streamUse the Server token, not the Account token. The stream is outbound unless you created another.
ResendAPI keyGive the key sending access for your domain.
SendGridAPI keyCreate one with “Mail Send” access.
SMTP2GOAPI keyCreate an API key with permission to send emails.
SparkPostRegion, API keyPick US or EU to match your account.

6. From address and bounces

Under Sender on the Settings screen:

  • From email: use an address on your own domain that your provider lets you send from. Use it for every email is on by default and recommended, because most providers reject From addresses they haven’t verified. Replies still go to the Reply-To a plugin sets.
  • From name: the name inboxes show. Tick Use it for every email to override names set by plugins too.
  • Bounces: sends bounce notices to the From address (Return-Path), so you find out about addresses that don’t exist.

7. Send a test

  1. Go to Sendwell SMTP → Send a test.
  2. Enter an address you can check, leave HTML ticked (most plugin emails are HTML) and click Send test email.
  3. Check the inbox, and the spam folder.

If the test fails, Sendwell shows the error and what it usually means:

Error mentionsWhat to do
535, authentication, invalid loginThe server refused the username or password. Gmail and Microsoft 365 need an app password.
Could not connect, timed out, connection refusedYour site couldn’t reach the server. Check the host and port; your web host may block SMTP ports, in which case use an email API.
Certificate, SSL, TLSMake the encryption match the port (SSL/TLS for 465, STARTTLS for 587).
Sender address rejected, not verifiedThe From address isn’t allowed by your provider. Verify the address or domain with them, or change the From email.
HTTP 401 or 403, API keyThe provider refused the key. Check it was copied in full and has permission to send.
HTTP 429, quota, limitYou’ve hit your provider’s sending limit. Wait, or raise the limit.

If the test arrives in spam, run the DNS check.

8. Reading the email log

Sendwell SMTP → Email log lists every email your site sent, newest first:

  • Date, To and Subject.
  • Result: Sent, Failed or Blocked (when Block all emails is on). by backup means the backup connection sent it.
  • Sent by: WordPress itself or the plugin or theme that sent it, so you can tell which plugin’s emails are failing.

Filter by result or search, and click a subject to see the details: From, Cc, Bcc, which connection sent it, the message ID, attachments, headers and the full error with advice. Use Delete selected or Empty the log to remove entries.

The free version keeps entries for 30 days. A notice in wp-admin tells you when an email couldn’t be sent, and the dashboard widget shows the last 7 days’ sent and failed counts.

Email content, resend and CSV Pro

With Pro and Also keep the message itself ticked (Settings → Email log), each entry keeps the message so you can read exactly what was sent and click Resend this email. Attachments are resent if the files still exist. Export CSV downloads the log, using the current filter and search. Emails can contain personal details such as reset links and order details, so untick the option if you don’t need it. Set Keep entries for to any number of days from 1 to 3650.

9. Checking SPF, DKIM and DMARC

On Sendwell SMTP → Tools, under Check your domain’s email records, the domain of your From address is filled in; change it if you like and click Check.

  • SPF: a TXT record starting v=spf1 that lists who may send for your domain. Make sure it includes the service you send through. Having two SPF records is an error: merge them into one.
  • DKIM: a key your provider signs emails with. Sendwell looks at the usual names (such as default, google, selector1, s1, k1, resend, pm). Some providers use their own name, so a warning here may be fine: check in your provider’s dashboard that DKIM is verified.
  • DMARC: Gmail, Yahoo and Microsoft expect one. A safe start is a TXT record at _dmarc with v=DMARC1; p=none;

Your email provider gives you the exact SPF and DKIM records to add at your domain’s DNS host. Changes can take a few hours to show.

10. Settings in wp-config.php

To keep a password or key out of the database, or to fix settings on a site, define them in wp-config.php above the line That’s all, stop editing!:

define( 'SENDWELL_PROVIDER', 'smtp' );
define( 'SENDWELL_SMTP_HOST', 'smtp.example.com' );
define( 'SENDWELL_SMTP_USER', 'you@example.com' );
define( 'SENDWELL_SMTP_PASS', 'your-app-password' );

Any field of the main connection works the same way: SENDWELL_ followed by the field name in capitals. A field set this way is shown locked on the Settings screen and can’t be changed there. Constants apply to the main connection only, not the backup.

Provider (SENDWELL_PROVIDER)Field constants
smtpSENDWELL_SMTP_HOST, SENDWELL_SMTP_PORT, SENDWELL_SMTP_ENCRYPTION (tls, ssl or none), SENDWELL_SMTP_AUTOTLS, SENDWELL_SMTP_AUTH, SENDWELL_SMTP_USER, SENDWELL_SMTP_PASS
sesSENDWELL_SES_REGION, SENDWELL_SES_ACCESS_KEY, SENDWELL_SES_SECRET_KEY
brevoSENDWELL_BREVO_API_KEY
mailgunSENDWELL_MAILGUN_DOMAIN, SENDWELL_MAILGUN_REGION (us or eu), SENDWELL_MAILGUN_API_KEY
postmarkSENDWELL_POSTMARK_TOKEN, SENDWELL_POSTMARK_STREAM
resendSENDWELL_RESEND_API_KEY
sendgridSENDWELL_SENDGRID_API_KEY
smtp2goSENDWELL_SMTP2GO_API_KEY
sparkpostSENDWELL_SPARKPOST_REGION (us or eu), SENDWELL_SPARKPOST_API_KEY
defaultNone (PHP mail)

You still need to click Save on the Settings screen once to switch sending on.

11. Backup connection Pro

Under Backup connection on the Settings screen, choose a second provider and fill in its details. If the main connection fails (an outage, an expired password, a full quota), Sendwell sends the same email through the backup straight away. The log marks it by backup. A different provider from the main one gives the best protection, such as Brevo as a backup for your SMTP server.

12. Alerts and weekly summary Pro

  • Email me when sending fails: one or more addresses, separated by commas. If the main connection is down, the alert goes through the backup connection, so set up a webhook too if you have no backup.
  • Webhook: a Slack, Discord or Google Chat incoming webhook URL, or any HTTPS URL that accepts JSON. It works even when email doesn’t.
  • At most one alert is sent every 15 minutes, so an outage doesn’t flood you.
  • Weekly summary: every Monday, an email with the emails sent and failed, the most common errors and which plugins send the most. Leave the address empty to use the site’s admin email.

13. Other settings

  • Failure notice: shows a notice in wp-admin when an email couldn’t be sent, with links to the failed emails and the test screen.
  • Block all emails: sends nothing, for staging and test copies of a site. Blocked emails still appear in the log.
  • Log emails: untick to stop recording new emails.

Deactivating the plugin keeps its settings, so you can switch it back on later.

Questions

Gmail says my password is wrong

Google needs an app password for SMTP. Turn on 2-step verification, then create one under Google Account → Security → App passwords.

My host blocks SMTP

Use one of the email APIs (Brevo, Postmark, Resend, SendGrid and others). They send over normal web traffic, which hosts don’t block.

Emails send but land in spam

Run the DNS check and add any missing SPF, DKIM or DMARC records, and make sure the From email is on the domain your provider has verified.

Some emails show a different From address

Tick Use it for every email under From email, so plugins can’t set an address your provider would reject.

Already have a licence key?

Install the Pro zip from your purchase email and open Sendwell SMTP. Freemius shows a licence screen: paste the key from the email and click Activate License. You don’t need another purchase. Only a site administrator can manage licences. Moving to a new site? Deactivate the licence on the old site from its account page first, or email us.