WordPress has several SMTP plugins you can use to force any FROM address you like. This is important for two major reasons:
- It allows you to send email directly through your mail server as opposed to the web server. This helps to prevent issues with Sender Domain Policy and Spoofing.
- It allows you to send email FROM another email host. For example, you can use your GMAIL address as the FROM email instead of your DreamHost address
One popular plugin option is shown below with its recommended settings.
WP Mail SMTP
- Download the 'WP Mail SMTP' plugin at WP Mail SMTP.
- After it's installed and activated, navigate to the 'Plugins' page in your WordPress dashboard.
- Click the 'Settings' link under the plugin.
- Fill in the following fields:
- From Email - Enter the email you wish to send FROM
- From Name - Enter a name you'd like to appear as being sent FROM
- Mailer - Send all WordPress emails via SMTP
- Return Path - You can leave this unchecked
- SMTP Host - Make sure to use your mail server name. If you host email at Google, change this to smtp.gmail.com
- SMTP Port - 465
- Encryption - Use SSL encryption
- Authentication - Yes: Use SMTP authentication
- Username - Enter your email address
- Password - Enter your email address password
- Click the Save Changes button.
Your form will now send FROM the email you entered above.
There are several other SMTP plugins you can use to send email. After logging into your WordPress site, select 'Plugins > Add New' in the left pane. You can then search for the term 'SMTP' to view other options.
Allowing GMAIL to send from your mail application
If you're using your GMAIL address to send via SMTP, you must first allow your application access to your GMAIL address. If you do not do this, your email will not authenticate and not send. View the following article for details: