Skip to content

How to Set Up WP Mail SMTP on WordPress with Cloudways (2026 Guide)

On this page

Last updated: · By

Short answer: WP Mail SMTP is a WordPress plugin that sends every email from your site (forms, orders, password resets) through a reliable SMTP service instead of straight from the server. On Cloudways you install the plugin, set a sender address and name on your own domain, and pick a Mailer: PHP if you already enabled Elastic Email or the Cloudways SMTP add-on on the server, or your own provider (Mailgun, SendGrid or Other SMTP). Then you send a test email and add SPF and DKIM records. The whole process takes about 15 minutes.

⏱ Time needed: 15–20 minutes + up to 24 hours for DNS to update · Difficulty: easy to medium · Last checked against the official docs: 6 Nov 2026

Why WordPress emails don’t arrive, and why you need SMTP

By default WordPress sends email through a simple PHP function, straight from the server. Mail providers such as Gmail and Outlook don’t trust email sent this way: the server isn’t set up as a mail server, and nothing verifies that it is allowed to send on behalf of your domain. Every site owner knows the result: form submissions that vanish, order confirmations that land in spam, and customers who never get a password reset email.

SMTP (Simple Mail Transfer Protocol) is the protocol mail servers use to send messages. When your site sends through a recognized SMTP service, with the right authentication records in DNS, the emails reach the main inbox. That is what WP Mail SMTP does: it replaces direct sending with sending through such a service.

On Cloudways this matters for two reasons. First, Cloudways doesn’t host email on its servers, it offers email add-ons. Second, according to Cloudways, cloud providers such as Vultr and Google block outbound port 25 by default, so you use port 587 or 2525 instead.

Which sending method should you choose?

There are two approaches. You can set up sending at the server level through a Cloudways add-on, so every site on the server sends through it. Or you can set a provider for each site separately, inside WP Mail SMTP.

OptionLevelWhat to pick in WP Mail SMTPWhen it fits
Elastic Email (Cloudways add-on, paid)ServerPHP, and if that doesn’t work: Other SMTPCloudways’ recommendation for most sites
Cloudways SMTP add-on (free, with your own provider)ServerPHPYou already have an account with an SMTP provider and want it for the whole server
A provider directly in the plugin (Mailgun, SendGrid, etc.)Single siteThe provider’s name, or Other SMTPA different provider per site, for example per client at an agency
Gmail / Google WorkspaceServer or siteDepends on the setup you choseSmall volumes only. Cloudways articles disagree on the limit: about 100 a day in the setup guide, and about 500 on a free account or 2,000 on Workspace in another article. Check with Google

Note that, according to Cloudways, you can enable only one transactional email add-on per server, either Elastic Email or SMTP. If you need a different provider for each site, you do it through WP Mail SMTP on each site. The full comparison of the options is in the Cloudways email options guide.

Before you start

  • Administrator access to the WordPress dashboard.
  • An email address on your own domain to send from, for example info@example.com. Not a Gmail or Yahoo address.
  • A sending service that is ready: Elastic Email or the SMTP add-on active on the server, or an account with a provider and an API key or SMTP details. To enable Elastic Email, see the guide to verifying your domain in Elastic Email, and for the SMTP add-on see the Cloudways SMTP guide.
  • Access to your domain’s DNS management, for the SPF and DKIM records.

How do you set up WP Mail SMTP, step by step?

Step 1: Install and activate

  1. In the WordPress dashboard, click Plugins and then Add New Plugin.
  2. Search for WP Mail SMTP by WPForms and click Install Now.
  3. When the installation finishes, click Activate.

After activation, the plugin may open a setup wizard. You can go through it, or skip it and configure everything directly in the settings screen, as I do here.

Step 2: Sender address and name

  1. In the plugin list, next to WP Mail SMTP, click Settings.
  2. In From Email, enter the sending address on your domain, and tick Force From Email. That way forms and plugins that have a different address configured will also send from this one.
  3. In From Name, enter the name recipients will see, and tick Force From Name. A business name works fine, including one with non-Latin characters.

Step 3: Choose a Mailer

This step decides which route your emails take out. Choose according to what you set up:

  1. The server has Elastic Email or the Cloudways SMTP add-on: under Mailer, choose PHP. The server already routes email through the service, and the plugin only makes sure the sender address is correct.
  2. Your own provider for this site: pick the provider’s name from the list, for example Mailgun. Paste the API key from your provider account into the Private API Key field and enter your domain. If the provider isn’t on the list, choose Other SMTP and enter the details the provider gives you.
  3. Also tick Return Path, so that bounce notifications for undelivered emails come back to the sender address. That’s how you find out when something doesn’t arrive.
  4. Click the save button at the bottom of the screen.

Step 4: Send a test email

  1. At the top of the plugin screen, go to the Email Test tab.
  2. In Send To, enter an address you have access to and click Send Email.
  3. Look for the email in your main inbox. If it’s in spam, sending works but the DNS authentication is missing (next step).

Tip: test a real scenario too. Fill in a form on the site, and in a shop place a test order. The plugin’s test email won’t always reveal a form that is set to send from a different address.

How do you set up Elastic Email through Other SMTP?

If Elastic Email is active on the server but emails don’t go out with the PHP Mailer, you can connect to it directly. These are the settings according to the Cloudways documentation:

FieldValue
MailerOther SMTP
SMTP Hostsmtp.elasticemail.com
SMTP Port2525 or 587
EncryptionTLS
Username / PasswordYour Elastic Email API key

The sender address has to be on a domain that was verified in Elastic Email. Without verification, sending will fail.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

SPF, DKIM and DMARC: the authentication that keeps emails out of spam

Three DNS records tell the recipients’ mail servers that the sender is legitimate:

  • SPF: a TXT record listing which servers are allowed to send on behalf of the domain.
  • DKIM: a digital signature on every email, which the recipient checks against a key published in DNS.
  • DMARC: a policy that says what to do with an email that fails SPF or DKIM, and where to send reports.

The exact values come from your sending provider. For Elastic Email, according to Cloudways, the SPF record is v=spf1 a mx include:_spf.elasticemail.com ~all, and a basic DMARC record (a TXT record named _dmarc) is v=DMARC1;p=none;pct=1;aspf=r;adkim=r;.

Two things worth knowing: First, the Cloudways documentation tells you to enter the server’s IP address in the Host field of the SPF record. With most registrars, that field should be the domain itself: @ or empty. Second, a domain may have only one SPF record. If you already have SPF for Google Workspace or another mail provider, merge them: one include per provider, and a single all at the end. Two separate SPF records cause authentication to fail.

The full explanation, including examples of merging records and the SPF limit of 10 lookups, is in the SPF, DKIM and DMARC guide.

Why do emails still land in spam after you set up SMTP?

Because SMTP only answers the question “does the email go out?”. Where it lands depends on three other things: a sender address on a verified domain, content that doesn’t look like spam, and the reputation of the sending account. Here is how that looked in two real tickets I handled, in 9.2025 and 10.2026.

What we sawThe causeWhat helped
WooCommerce order emails sent through Elastic Email landed in spam (9.2025)The sender address was on a domain that wasn’t verified in Elastic EmailChanging the sender address to the verified domain
Even after the fix, test emails kept going to spamThe WP Mail SMTP test email and its generic template trigger spam filtersTesting with a real order instead of a test email, and escalating to Elastic Email
Emails bounced on two accounts (10.2026)Elastic Email restricted the accounts because of a low open rateEscalating through Cloudways support; the restriction was eased, and I’m still monitoring

Two tools help you see what is going on. The first is Google Postmaster Tools, which Cloudways support recommended to me: a Gmail dashboard that shows the spam rate, reputation, authentication and delivery errors for your domain. According to Google, on days with low email volume the data may not appear.

The second is the account status in Elastic Email. According to the Elastic Email help center, an account in Under Review status doesn’t send until the review is complete, and the account owner receives a message with the reason. If emails suddenly stop going out, check this first.

For the other scenarios: order emails that don’t arrive at all are covered in the guide to WooCommerce emails not arriving; domain verification in the guide to verifying your domain in Elastic Email; and a comparison of sending providers in Elastic Email vs alternatives.

Common mistakes and how to fix them

The test email isn’t sent at all: check the provider details (API key, username, port). If you chose PHP, make sure the email add-on is really active on the server in the Cloudways platform. And try port 587 or 2525, not 25.

Emails go to spam: SPF or DKIM records are missing, or there are two SPF records. Check your DNS and merge them into one record.

The sender address is a Gmail address: sending from WordPress on behalf of a Gmail or Yahoo address fails authentication and lands in spam. According to Cloudways, Elastic Email also requires a verified domain. Use an address on your own domain.

One particular form still doesn’t arrive: the form is set to send from a different address, and Force From Email isn’t ticked. Tick it, or update the address in the form settings.

The monthly quota ran out: in Elastic Email, once the quota is used up, emails stop going out until the start of the next month, or until you upgrade your plan. If your site sends a lot, check the quota in advance.

Sources

Frequently asked questions about WP Mail SMTP on Cloudways

Is WP Mail SMTP free?

The plugin has a free version that is enough for most sites, including the SMTP connection and a test email. The real cost is the sending service, for example Elastic Email or another SMTP provider, if it is paid.

Does Cloudways send emails from my site without any setup?

WordPress will try to send, but without an SMTP service the emails may not arrive or may land in spam. Cloudways doesn’t host email on its servers, and recommends using Elastic Email or an external SMTP provider.

Which Mailer should I choose on Cloudways?

If you enabled Elastic Email or the Cloudways SMTP add-on on the server, choose PHP. If you want a separate provider for this site, pick the provider’s name from the list or Other SMTP, and enter its details.

Can I send emails from my site through Gmail?

Yes, for small volumes. Cloudways articles disagree on the limit: about 100 emails a day in the setup guide, and about 500 on a free account or 2,000 on Google Workspace in another article. Check the current limit with Google. For a shop or a site with lots of forms, a dedicated sending service is more reliable.

Why do I need an SPF record if the email is already sent?

Because without SPF and DKIM, the recipient’s server can’t verify that the sender is authorized, so many emails are sent to spam or rejected. The records are what separates sent from delivered to the inbox.

Official source: How to Configure WP Mail SMTP Plugin to Send Emails, Which Email Add-on Should I Use?, Does Cloudways Provide Servers for Email Hosting?, How to Merge Multiple SPF Records (Cloudways Knowledge Base). This guide was written and checked by Asael Dreyer · Updated: 6 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL