WP Mail SMTP
Using this plugin will replace the default mail() function and uses Wordpress' wp_mail() function instead.
After installing the plugin, you will need to configure its settings. In your admin page, go to Settings -> Email:
Upon opening the settings page, you'll see four basic options:
- From Email - This is where you'll be adding your email address that your subscribers or users will see
- From Name - The name you'll represent to your subscribers or users.
- Mailer - keep the default option selected (Send all WordPress emails via SMTP)
- Return Path - By checking this box, the “reply to” email will be the same email as the “from” email (which is good for consistency)
The next section of the settings page is all about the SMTP options. We recommend that you double-check with your hosting to get the appropriate SMTP info for the email you want to use. Each hosting has slightly different settings.
If you are trying to use a gmail address and not something that ends with @yourdomain.com, then you can do that too and the settings are described in the FAQs here https://wordpress.org/plugins/wp-mail-smtp/faq/
Lastly, you can test out an email by going to the "Send a Test Email" section. Just enter the email where you want the test message to go.