How do I configure a WordPress SMTP plugin?

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

Two of the most popular plugins are shown below with their recommended settings.

WP Mail SMTP

  1. Download the 'WP Mail SMTP' plugin at WP Mail SMTP.
  2. After it's installed and activated, navigate to the 'Plugins' page in your WordPress dashboard.
    01 WP Mail SMTP.png
  3. Click the 'Settings' link under the plugin.
    02 WP Mail SMTP.png
  4. 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
  5. Click the Save Changes button.

Your form will now send FROM the email you entered above.

Configure SMTP

  1. Download the 'Configure SMTP' plugin at Configure SMTP.
  2. After it's installed and activated, navigate to the 'Plugins' page in your WordPress dashboard.
    01 Configure SMTP.png
  3. Click the 'Settings' link under the plugin.
    02 Configure SMTP.png
  4. Fill in the following fields:
    • Send e-mail via GMail? - 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
    • Secure connection prefix - SSL
    • Use SMTPAuth? - Check this option
    • SMTP username - Enter your full email address
    • SMTP password - Enter your email address password
    • Wordwrap length - You can leave this blank
    • Enable debugging? - Leave unchecked unless you're currently debugging
    • Sender e-mail - Enter your full email address
    • Sender name - Enter the name your email will be sent FROM
  5. Click the Save Changes button.

Your form will now send FROM the email you entered above.

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:

See also

Did this article answer your questions?

Article last updated .