To use SMTP on your website for sending emails via WordPress, you will need to use a plugin, we recommend Easy WP SMTP as it’s easy to set up and use!
Once plugin is installed and active, navigate to Settings → Easy WP SMTP section on your WordPress admin dashboard:

On the Easy WP SMTP page, you will need to configure the SMTP server according to your hosting configuration.
Once you have SMTP connection data you can go ahead and start configuring the plugin itself:

From Email Address — the email address you created at your hosting
From Name — the name of the sender.
Reply-To Email Address (optional) — contains the optional second email address that will receive the replies.
BCC Email Address (optional) — that email will be placed as a blind copy of all emails sent by your SMTP.
After that’s done, go ahead and fill in SMTP server configuration, for this article we will use hPanel ones:

SMTP Host —you will put the host of your server, which you obtained by the articles indicated above
Type of Encryption — select the SSL/TLS option
SMTP Port — use the 465 port
SMTP Authentication — select Yes
And SMTP username with password:

After this is done, we recommend that you do a sending test with your SMTP. For that click on Test Email section and select Send Test Email:
