Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Set Up WP Mail SMTP with Any Host (Ultimate Guide)

Do you want to set up WP Mail SMTP on your WordPress site?

WP Mail SMTP is the best WordPress SMTP plugin that allows you to easily send WordPress emails using a secure mail transfer protocol or SMTP.

In this article, we’ll show you how to easily set up WP Mail SMTP with any host or third-party SMTP service.

Setting up WP Mail SMTP with any WordPress host

This is a lengthy article, so we have added a table of contents. If you know what you are looking for, then you can click on the link to jump to that section.

What is WP Mail SMTP and Why You Need it to Send WordPress Emails?

WP Mail SMTP is the best WordPress SMTP plugin on the market. It allows you to send all your WordPress emails using an SMTP server easily.

Once you set up your WordPress site, you may notice that you are not getting any emails from WordPress. This includes WordPress notification emails and emails from your WordPress contact form plugin.

The reason you’re not getting emails is usually because WordPress uses the PHP mail() function to send them.

Most WordPress hosting companies do not configure it properly, and some simply disable it to prevent abuse.

The easiest fix for this issue is to use SMTP to send WordPress emails.

SMTP stands for “secure mail transfer protocol”, and it is pretty much the standard way to send emails. It requires you to log in to a mail server to send emails, which prevents the abuse of the hosting server and improves email deliverability.

Hosting SMTP Server vs Third-Party SMTP Server – Which One to Use?

Most WordPress hosting companies offer free business email addresses which you can use with your own domain name.

We recommend setting up a separate email address for your WordPress website. It can be anything like support@example.com or info@example.com.

However, your WordPress hosting provider does not specialize in sending emails. Their SMTP servers are basic and have strict limits on the number of emails you can send.

If you run a small business website or a blog, then you’ll be fine with your hosting provider’s SMTP servers.

On the other hand, if you run an online store or a membership website, then emails become mission-critical for your business. You want to make sure that your customers get important email notifications delivered to their inboxes.

This is where you need a third-party SMTP service provider. These companies specialize in securely sending large numbers of emails without triggering spam filters.

We recommend using SendLayer, Sendinblue, or SMTP.com for most online businesses.

They are reasonably priced and can scale as your business grows. For more information, see our article on top SMTP service providers for more details.

Once you have chosen an email delivery method, the next step is to connect your WordPress website to your mail server.

This is where the WP Mail SMTP plugin comes in. It allows you to send WordPress emails via SMTP by entering your SMTP credentials.

WP Mail SMTP is the most popular SMTP solution for WordPress, currently used by over 2 million websites. It’s maintained by the same team as WPForms.

There is also a free WP Mail SMTP lite version which is also fully functional and can be used with any WordPress hosting company or third-party SMTP service provider.

The premium version of the WP Mail SMTP pro supports all the top SMTP service providers and works with any WordPress hosting company that offers email accounts.

It also comes with powerful features like email logs, email controls, priority support, and a white glove setup.

Installing and Setting Up WP Mail SMTP

The first thing you need to do is install and activate the WP Mail SMTP plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you will see the setup wizard. You can skip the setup wizard as we’ll show you how to set up WP Mail SMTP manually.

Skip setup wizard

Next, you need to visit the Settings » WP Mail SMTP page to configure the plugin settings.

WP Mail SMTP Settings

You need to enter your SMTP settings to use WP Mail SMTP. The first part of the settings will be similar regardless of your hosting company. It includes the following settings:

  • From Email – This is the email address that will be used to send all WordPress emails.
  • From Name – This name will be used to send emails. We recommend using your website’s title as from name.
  • Mailer – You need to select ‘Other SMTP’ here as you will be sending emails using your host’s SMTP server
  • Return Path – Check this box to receive delivery notifications or bounced messages.

Note: If you want to use third-party mailers, then you can follow this guide to send WordPress emails via Gmail SMTP. We also have a similar guide for the Sendinblue SMTP setup.

If you want to continue using your host, then you need to select Other SMTP and enter the SMTP server settings provided by the hosting company.

  • SMTP Host – This is the SMTP host address provided by your hosting company.
  • Encryption – The encryption method used by your mail server to send emails. Usually, it is TLS.
  • SMTP Port – This is the port used by the outgoing mail server.
  • Auto TLS – This setting should be set to On
  • Authentication – Needs to be On
  • SMTP Username – This is usually the email address you are using to send emails
  • SMTP Password – This is the password for the email account you are using to send emails. We don’t recommend saving SMTP passwords here. Instead, you need to store your password in the wp-config.php file.
Other SMTP

These settings are required to connect with any SMTP server. However, their values may differ from one WordPress hosting company to another.

Let’s see how to set up the WP Mail SMTP plugin with different hosting companies.

Setting up WP Mail SMTP on Bluehost

Bluehost is one of the biggest hosting companies in the world and an officially recommended WordPress hosting provider.

We recommend Bluehost to all users who are starting a WordPress blog or making a small business website.

Following are the SMTP settings you will be using to connect WP Mail SMTP to the Bluehost SMTP server.

  • SMTP Host – mail.example.com
  • Encryption – TLS
  • SMTP Port – 587
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password

Don’t forget to replace example.com with your own domain name.

Bluehost SMTP

Setting up WP Mail SMTP on SiteGround

SiteGround is another popular WordPress hosting company. They offer excellent shared, managed, and WooCommerce hosting services.

Following are the SMTP settings you will be using to connect WP Mail SMTP with SiteGround servers.

  • SMTP Host – mail.example.com
  • Encryption – TLS
  • SMTP Port – 587
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
Email SMTP Settings for SiteGround

Setting up WP Mail SMTP on HostGator

HostGator is another popular WordPress hosting company. WPBeginner is hosted with HostGator, and we have been using them for over 10 years.

Following are the SMTP settings you will be using to connect WP Mail SMTP with HostGator servers.

  • SMTP Host – full.servername.com
  • Encryption – SSL
  • SMTP Port – 465
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
HostGator SMTP settings for WordPress

You will notice that instead of using your domain as the SMTP Host, it uses the server name. You can find the server name from your cPanel hosting dashboard.

Simply log in to your cPanel, and you will see the full server name in the right column towards the bottom.

HostGator server hostname

Setting up WP Mail SMTP on DreamHost

DreamHost is a popular WordPress hosting company. They have been around since 1997 (way before WordPress, Google, or Facebook) and offer shared WordPress hosting, managed, and VPS hosting plans.

Following are the SMTP settings you will be using to connect WP Mail SMTP with DreamHost servers.

  • SMTP Host – full.servername.com
  • Encryption – SSL
  • SMTP Port – 465
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
DreamHost SMTP

You will notice that Dreamhost doesn’t use your domain name as the mail server. Instead, they use different servers to manage emails, and you will need to find out which one is used by your hosting account.

You can do this by logging into your DreamHost hosting panel and then going to the Support » Data Centers page. From here, you need to scroll down to the mail service section.

DreamHost Mail Service

You will find the name of the email cluster under the details column next to your domain name.

Next, you need to visit DreamHost’s email configuration page and scroll down to the ‘Where to find your mail hostname (cluster) name’ section. Here you can match your email cluster with the names in the table and copy the outgoing server address next to it.

SMTP server DreamHost

Setting up WP Mail SMTP on InMotion Hosting

Following are the SMTP settings you will be using to connect WP Mail SMTP with InMotion Hosting servers.

  • SMTP Host – server##.inmotionhosting.com
  • Encryption – SSL
  • SMTP Port – 465
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
InMotion Hosting SMTP settings for WordPress

Note: In the SMTP host field, you need to replace ## with your server number. You can find this by logging in to your cPanel dashboard and then clicking on the Account Technical Details icon.

Finding your InMotion Hosting server number

Setting up WP Mail SMTP on GoDaddy

GoDaddy is the world’s most popular domain name registrar, managing more than 76 million domain names for over 17.5 million customers. They also offer different hosting plans (For details see our article on the difference between a domain name and web hosting).

Following are the SMTP settings you will be using to connect WP Mail SMTP with GoDaddy shared hosting plans.

  • SMTP Host – mail.example.com
  • Encryption – TLS
  • SMTP Port – 587
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
GoDaddy SMTP settings for WP Mail SMTP

Setting up WP Mail SMTP on iPage

Following are the SMTP settings you will be using to connect WP Mail SMTP with iPage hosting servers.

  • SMTP Host – smtp.ipage.com
  • Encryption – TLS
  • SMTP Port – 587
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
iPage SMTP settings for WP Mail SMTP

Setting up WP Mail SMTP on GreenGeeks

Following are the SMTP settings you will be using to connect WP Mail SMTP with GreenGeeks.

  • SMTP Host – mail.example.com
  • Encryption – SSL
  • SMTP Port – 465
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
GreenGeeks SMTP settings for WP Mail SMTP

Setting up WP Mail SMTP on JustHost

Following are the SMTP settings you will be using to connect WP Mail SMTP with JustHost.

  • SMTP Host – mail.example.com
  • Encryption – SSL
  • SMTP Port – 465
  • SMTP Username – Your email address (e.g. wordpress@example.com)
  • SMTP Password – Your email account password
JustHost SMTP settings for WP Mail SMTP

Setting up WP Mail SMTP with Third-Party Email Services

Some managed WordPress hosting companies do not offer email service as part of their hosting plan. In that case, you will need to use a third-party SMTP service provider to send emails.

WP Mail SMTP supports multiple popular mailing services including Gmail / Google Apps for Work, Microsoft Outlook and Office 360, Sendinblue, SMTP.com, and more.

Simply click on the mailer service and the plugin will show you the information required to use that mailer.

Mailers in WP Mail SMTP

For details see our tutorial on how to use a free SMTP server to send WordPress emails.

We hope this article helped you learn how to set up WP Mail SMTP with any host. You may also want to see our guide on why you should never use WordPress to send your newsletter emails and the best newsletter plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

15 CommentsLeave a Reply

  1. If you have woo commerce is SMTP + autoresponder a good combination for sending Transactional Emails? Thank you!

    • WooCommerce has built-in transactional emails we would recommend setting up SMTP but additional plugins shouldn’t be needed normally for what it sounds like you’re wanting.

      Admin

  2. Thanks for the great work…I have three web sites in SiteGround, but when I created them I didn’t create emails in their server, I just put in wordpress settings the mail that I use in GMX. Whatever messages come from readers I always reply from this gmx email, that is, from a server completely independent of SiteGround. For incoming messages I use a simple contact form. Based on these features do I need a smtp plugin?

    • You may still want to use SMTP to ensure your messages get sent to your email properly.

      Admin

  3. I don’t seem to have the ‘sender’ app tab on my wpadmin panel after i install the wp mail smtp plugin. What gives? I’m guessing this tab would allow me the function of sending out emails. . . ? Otherwise, I’ve set up the plugin properly I believe.

    • There isn’t a sender tab but if you’re having trouble with the plugin you can reach out to the plugin’s support for them to assist :)

      Admin

  4. One other suggestion if you use BuddyPress. After completing the above recommended improvements, I still was not receiving “account activation” emails. They came back as: “Mail delivery failed: returning message to sender …smtp; 550 This message has been reported as spam by other users.” I knew that they hadn’t been reported, because I was testing them only to myself. This was probably due to a lot of trial and error on my part.

    It turned out that using: “WordPress Dashboard > Tools > BuddyPress > BuddyPress Tools > Repair tools > Reinstall emails (delete and restore from defaults)” …was the final perfect solution to my problem!

  5. Hi. Thanks for very helpful article. I have tried to configure the Gmail SMTP but It’s not working. I found this error: redirect_uri_mismatch
    And SendGrid is working but E-mail going to spam folder. How can I fix it. ??

    • You would want to ensure you set up your API correctly or you can reach out to the plugin’s support and they should be able to assist.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.