Dec 02, 2025
Aris S. & Marco C.
8min Read
The Simple Mail Transfer Protocol (SMTP) lets users send emails using an external service instead of the website’s server. It provides higher security and deliverability than the default Hypertext Preprocessor (PHP) mail() function.
In WordPress, SMTP is set by connecting your email account and a mailer using a plugin. In this WordPress tutorial, we will explain how to configure SMTP in five steps.
Moreover, we will explore the best plugins for enabling the mailing protocol on your website and third-party services that help improve deliverability.
WordPress SMTP is a protocol that allows users to send emails across the internet using a third-party mailer instead of the website’s host server. By using SPF and DKIM records, SMTP is more secure and reliable than WordPress’ default PHP mail() function.
Sending emails using PHP is less reliable due to several drawbacks. For example, its lack of SMTP authentication makes PHP a target for cyber crimes like spoofing.
Unlike the default PHP mail() function, SMTP has Sender Policy Framework (SPF) and Domain Keys Identified Mail (DKIM) records. Therefore, recipients are less likely to identify emails from an SMTP mailer as spam, ensuring deliverability.
SPF lets a domain determine the permitted and authorized IP addresses to send emails. Meanwhile, creating custom DKIM records enables the sender to digitally sign their messages for authentication.
Some web hosts disable the WordPress email settings by default to prevent abuse and spam. Luckily, the SMTP protocol lets you enable the mailing service regardless of your server configuration.
Finally, it is also easy to set up since users only need a third-party SMTP server and a WordPress plugin.
In this section, we will explain how to configure WordPress SMTP using a plugin. Though these steps work for all web hosts, we recommend Hostinger’s WordPress web hosting plan, which includes up to 100 free professional email accounts.

After purchasing a Hostinger WordPress hosting plan and activating the included free domain, create your email account by following these steps:
If you forgot to save the SMTP information during the creation process, access it by going to the Connect Apps & Devices menu in the sidebar.
To configure SMTP, we’ll use the WP Mail SMTP plugin. After launching your WordPress website, follow these steps:
Save the SMTP password and username in the wp-config.php file to improve security.
Remember that the steps can slightly differ if you use a different plugin.
If you purchase the WP Mail SMTP Elite plan, you’ll get a free White Glove setup service that handles the configuration process.
Send a test email to check whether the SMTP service works properly. Here’s how to do it using the WP Mail SMTP plugin:
The plugin should confirm that it sent the email successfully. Otherwise, check the destination address and the WordPress SMTP settings.
If you use the premium WP Mail SMTP plugin, enable the Alerts and Email Log settings to track whether you sent the messages properly.
If you encounter an issue when sending an SMTP email, check out some of the most common causes and their solutions:
Hostinger’s hosting plans enable SMTP connection and port to ensure your WordPress mailing service works properly. You can also install any plugin without incompatibility issues.
Important! Connecting to a Google Workspace email account requires different information from SMTP. You’ll need a client ID, a secret key, and an authorized redirect URI.
Use the WP Mail SMTP plugin’s built-in debugging feature to simplify troubleshooting. To access it, go to your WordPress sidebar → WP Mail SMTP → Tools → Debug Events.
If you use its White Glove Setup service, the plugin developer will troubleshoot the issues and ensure your SMTP server settings are properly configured.
Plugins help users integrate their WordPress site with a mail server to relay and send messages. Meanwhile, SMTP solutions are third-party services that improve email deliverability. In addition to WP Mail SMTP, here are our five best picks.
Easy WP SMTP Stats:
Easy WP SMTP is one of the most popular WordPress email plugins. It offers a user-friendly interface and integration with popular mailer services, including Microsoft Outlook, Hotmail, Zoho Mail, and Google Workspace.
This plugin also supports SMTP.com and a custom SMTP server. However, you must manually configure mailer settings and your email account due to the lack of a built-in integration system.
While the plugin’s free version supports SMTP, you must purchase the premium plan to integrate popular mailer service providers. The paid version also includes additional features like email logging and reporting.
This plugin has an email testing feature to check whether your SMTP server is configured properly. It also has a debug events logging tool that tracks all sent emails and their errors.
Key Features
Cons
[DOWNLOAD]
Post SMTP Stats:
Post SMTP is the best WordPress SMTP plugin for users looking for comprehensive features.
To ensure optimal deliverability, this plugin provides a Fallback Mailing system. Users can define a backup WordPress SMTP host when the main one fails or encounters an error.
It also supports many popular SMTP mailer service providers. For example, you can integrate your Mandrill, Mailgun, Brevo, or Google Workspace account.
Moreover, Post SMTP offers a Setup Wizard to simplify the configuration process. Users can also export and import plugin settings to quickly set up WordPress SMTP on multiple websites.
Post SMTP also offers various add-ons to expand its functionality, like the Microsoft 365 API Delivery and Report & Tracking Pro extensions. In addition, it provides dedicated customer support via forums, email, and Slack.
Key Features
Cons
[DOWNLOAD]
FluentSMTP Stats:
FluentSMTP is the best free SMTP WordPress plugin with extensive compatibility. Users can integrate it with over 10 popular mailing services like Amazon SES and Gmail API.
This plugin is also compatible with all SMTP servers, which users can configure by entering the host, port, encryption method, and credentials. However, it doesn’t have a built-in feature for sending a test email.
This free SMTP plugin has a debugging tool and logging feature that helps track deliverability. Users can monitor their daily email statistics using its intuitive graph and chart via the WordPress dashboard.
Key Features
Cons
[DOWNLOAD]
Brevo Stats:
Brevo is the best SMTP service for WordPress if you want comprehensive marketing tools. For example, it provides heatmap reporting, open-and-click tracking, and recipients’ geographic statistics.
Brevo’s Enterprise plan offers a dedicated IP address and SSO authentication to improve email deliverability. Its free version has a 300 emails/day limit, but you can upgrade it by purchasing the paid plan.
To create WordPress transactional emails, choose a template and customize it using the drag-and-drop editor. Users can also send messages in bulk and personalize the content for each recipient.
Key Features
Cons
[DOWNLOAD]
SendGrid Stats:
SendGrid is an SMTP provider offering a cloud-based mail transfer agent. It uses API to integrate its service into a WordPress website and provide real-time insights.
This provider applies robust mailing features like dedicated IP addresses, SPF and DKIM records, and reverse DNS. It also offers additional expert services to help set up your email account and identify areas for improvement.
Moreover, this SMTP provider has a comprehensive real-time tracking feature. It lets you monitor metrics like email engagement rate and recipient geolocation to gain insights into your campaign performance.
To enable a secure SMTP connection with SendGrid, users need additional information from their hosting providers, such as their client ID and API key.
Key Features
Cons
[DOWNLOAD]
Simple Mail Transfer Protocol (SMTP) allows users to send emails over the internet using a third-party host instead of the website’s server. It offers higher security and deliverability than WordPress’s default PHP mail() function.
In this article, we have explained how to use a Hostinger email account and the WP Mail SMTP plugin for WordPress SMTP setup. After purchasing a hosting plan, follow these steps:
While plugins simplify the WordPress email setup process, third-party SMTP services help improve deliverability. For example, use SendGrid to identify potential issues in your email-sending patterns with AI.
Best WordPress Page Builders
How to Install WordPress
How to Access and Use Hostinger Email
In this section, we will answer several common questions about WordPress SMTP.
WordPress supports SMTP functionality, but it isn’t set up by default. Users must configure it using a plugin or via a service provider.
Purchase an email hosting plan from a web host like Hostinger and create an account. Then, open your WordPress website and install WP Mail SMTP or other plugins based on your preferences. Next, enter your email account details and SMTP credentials in the plugin settings. Finally, test the mailing functionality by sending a message.
The default WordPress emails lack authentication, prompting the recipient server to move them to the spam folder automatically. It also makes outgoing emails more vulnerable to spoofing attacks.
Yes, but we don’t recommend it. Personal email might have improper infrastructure, security, and authentication methods. By using a professional business email, you can improve your website’s credibility and boost customer trust, potentially increasing conversion rates.
Comments
August 20 2021
"Type of Encryption — select the STARTTLS protocol command to secure your connection." STARTTLS doesn't work. SSL/TLS option works fine.
September 20 2021
Hi Alexander! Thank you for pointing that out - sometimes (depending on application you're using, different versions, etc.) you might need to switch between SSL/TLS and STARTTLS as well as ports 587 and 465. Happy it worked out for you :)
January 10 2022
This information is now displayed in Configuration Settings. Thanks.
January 20 2022
Agree with other comment about encryption type, should be SSL/TLS for this tutorial I think as I'm running a very standard setup of Wordpress, woocommerce and Hosting SMTP and STARTTLS wasn't working for me either. wasted a lot of time until I switched that - the tutorial should at least say "try SSL/TLS if it doesn't work"
January 25 2022
Hi Josh, thanks for the input! I've updated the article as well :)
March 31 2022
I m using hostinger I have installed a PHP scripts named AToz SEO tools in its admin panel I'm trying to setup email settings but failed smtp error what should I do. Smtp.hostinger.com Port 465
April 06 2022
Hi Adnan, did you try using 587 port?
June 28 2022
Should be SSL. Star/TLS doesn't work at all.
July 01 2022
Hey there! The encryption depends on the port, if you're using port 465 then SSL encryption should be used as it's an SSL port. If you decide to use port 587, then you would need to use the TLS encryption, as port 587 is a TLS port ?
July 08 2023
Hi guys, for me, I have tried SSL and TLS but I don't recieve any mail once someone signs up, can anyone help with this issue, Thanks
July 14 2023
Hello, receiving issues are usually related to MX records of your domain, please make sure you got them set properly