Sometimes in Wordpress it is necessary to configure the automatic email sending to receive notifications when a visitor fills out a contact form, or if you have a store, to receive notifications of orders and send confirmation to customers.
Usually when configuring the plugin with which the forms or the store are set up, the email address from which to send notifications is configured and that is already enough, but there are occasions when email does not work with the basic configuration. This happens because on some servers, sending email from PHP is blocked.
To fix the email problem in Wordpress, we use the plugin WP Mail SMTP which can be installed from the plugins menu. If you do not know how to install a plugin in Wordpress, you can look at this other guide that explains how to do it.
Once you have installed the plugin, the data you have to enter to configure it are:
From Email: the email you are going to use (e.g. [email protected])
From Name: the name you want to appear as the sender
Mailer: Send all WordPress emails via SMTP.
Return Path: Set the return-path to match the From Email marked
SMTP Host: localhost (as long as you use email with us)
SMTP Port: 587
Encryption: No encryption
Authentication: Yes: Use SMTP authentication.
Username: the email you are going to use (e.g. [email protected])
Password: the account password
The email you must configure in this plugin must be the same as the one you use in the other plugins to send email.