Creativemotions»WordPress Tips & Guides»How to Send Emails via SMTP in WordPress
WordPressSMTP
As you may know, WordPress can send emails to inform you about new comments, registrations , updates, contact form messages.
By default, the PHP mail function is used to send emails although this is not the best approach and may reduce email deliverability as due to the nature of the PHP function, emails often end up in the spam /junk folder.
There is also a good chance that emails sent to popular email providers (gmail.com, hotmail.com, etc.) will be blocked before they even reach the recipient.
Furthermore, in order to avoid abuse, some hosting uae phone number data apply severe limitations or even disable the PHP Mail feature.
Alternatively, you can use the SMTP protocol to send emails with these advantages:
Emails sent via SMTP will match DNS records .
SMTP requires authentication.
If the SMTP server is configured properly by your hosting provider, the chance of the email ending up in the spam/junk folder is almost non-existent helping to improve WordPress email deliverability.
In this tutorial, you will learn how to configure WordPress to send emails using your hosting provider's SMTP server.
Important : Before proceeding, make sure that SMTP is supported by your hosting provider.
What do you need?
Before starting this guide you will need the following:
Access to your hosting control panel
Access to the WordPress website admin area
SMTP Support
Step 1: Gathering the required details
As mentioned above, you need valid login details to send emails via WordPress SMTP.
Therefore, you need to gather the following information to setup SMTP on WordPress:
SMTP Host . The name of the outgoing mail server.
Encryption type: None / SSL / TSL.
SMTP Port. Port used to transmit outgoing mail to the mail server.
SMTP Authentication . Yes / No. In most cases this option should be enabled.
SMTP Username . Username used to log in to the mail server.
SMTP Password . Password used to access the mail server.
If you already know these details, skip to step 2. Alternatively, follow these steps:
Create a new email account that will be used on WordPress.
For this guide we will be using cPanel but the process will be similar across different hosting control panels.
From the hosting control panel, go to the Mail Accounts section and press the Set up mail client button. The names of these sections may be different as they depend on the hosting provider.
Mail Client for WordPress SMTP Configuration
In this example, the SMTP details are provided at the bottom of the page. You can also see that SMTP authentication is required to connect.
WordPress SMTP Hostname
Note the outgoing server name (which is obscured in this case for privacy reasons) and port number as you will need it in step 2 .
You should now have all the details you need to set up SMTP on WordPress.
If you are unsure where and how to find these details, contact your hosting support staff, they will surely be able to help you.
Step 2: Install and configure Easy WP SMTP plugin
Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP and more
Author(s): EasyWPSMTP
92%
Ratings
600,000+
Installs
WP 5.2+
Requirements
More info
easy-wp-smtp.2.9.0.zip
Current Version: 2.9.0
Last Updated: 26/12/2024
92%
Ratings
600,000+
Installs
WP 5.2+
Requirements
WordPress.org Plugin PageEasy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP and more
WordPress does not have a built-in tool to send emails via SMTP so you will have to use a plugin.
We recommend using the Easy WP SMTP plugin as it is free and easy to use. Follow these steps to install and configure the Easy WP SMTP plugin .
First of all, install the plugin and go to the Easy WP SMTP Settings page located in the Settings section .
How to Send Emails via SMTP in WordPress
-
- Posts: 1259
- Joined: Tue Dec 24, 2024 4:29 am