Purpose: Wordpress by default uses a function called PHP mail to send emails. This is not secure and makes it easy for infected sites to send out spam. This results in getting the server blocked by major email companies.
To prevent this all emails will have to be sent via the SMTP server. Don't panic. This is not as hard as it sounds to fix. Follow these steps for each Wordpress installation:
-
Log into cpanel for that account and create an email account that the email will come from. Example:
-
Email: donotreply
-
Domain: abc.com (obviously pick yours from the drop down)
-
Password: This should be complex as no one will need to know it except when you configure the plugin
-
Create Account
-
-
Log into your Wordpress installation
-
Go to Admin/Add Plugin
-
Search for WP-Mail-SMTP by Callum Macdonald
-
Install it and activate
-
Go to Admin/Settings/Email
- Configure the Plugin, using the following examples
- From Email: The email address you set up in cPanel.
- From Name: The name you would like to show up in the email that is sent.
- Mailer: Send all WordPress emails via SMTP
- SMTP Host: localhost
- SMTP Port: 465
- Encryption: Use SSL Encryption
- Authentication: Yes: Use SMTP authentication
- Username: Fill in the email address you created earlier.
- Password: Fill in the password for the email account you created earlier.
- Save the changes and send a test email to yourself.
- Now you are done!