How to Configure WordPress to Use SMTP For Sending Emails Tutorial

Learn how to configure your WordPress to send messages via SMTP

By default, WordPress uses the PHP Mail function to send its emails. However it is better to use SMTP as it handles sending messages better and you can also use it to send emails from a third party mailing service.

To begin, first you need to install a plugin named WP Mail SMTP by following the instructions in our tutorial on how to install WordPress plugins. Once the plugin is installed and activated, a new menu will show up under the Settings section called Email. You will need to navigate to it in order to configure WordPress to work with SMTP.

On this page you will see several configuration options available:

Here's a list of all of them and what do they configure:

  • From Email - the email address you want to send emails from - for example;
  • From Name - the name that your emails will be sent from;
  • Mailer - choose whether you want to use the default Mail function or the SMTP;
  • Return Path - check if you want to match the return path for your emails to the sending email;
  • SMTP Host - the hostname for your SMTP server;
  • SMTP Port - the port your server works on;
  • Encryption - if you have SSL/TLS encryption available for that hostname, select it here;
  • Authentication - check if your SMTP server requires authentication;
  • Username - the username for your SMTP server;
  • Password - the password for your SMTP server;

Once you configure those parameters, simply click the Save button at the bottom of the page.