Title: Using Gmail&#039;s SMTP
Last modified: August 20, 2016

---

# Using Gmail's SMTP

 *  Resolved [forward123123](https://wordpress.org/support/users/forward123123/)
 * (@forward123123)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/using-gmails-smtp/)
 * First off, I really like this plugin. Thanks for all of the work you do on it.
 * I wanted to use Gmail’s SMTP instead of my host’s PHP mailer because occasionally,
   mail would be caught up in spam filters. (I had forgotten an old mailer script
   and it was exploited and now my server is sometimes considered possible spam.)
 * I could not get this to work, kept giving me the message that it couldn’t connect
   with Gmail’s SMTP. I don’t even remember how I found this, just tinkering around.
 * The SMTP settings don’t work with GMAIL. They are set to SSL and port 465. I 
   had WP SMTP set up, and had tested it earlier on Gmail, and it worked fine. So
   I used those settings, which are TLS and port 587.
 * Now it works fine on Wysija.
 * But, I had to go into the plugin files and find the instances of these settings
   and manually change them. Then I apparently updated the plugin and all of a sudden,
   I’m getting the can’t connect message again.
 * I finally remembered that I had done all the changing earlier, so redid all that
   again. And now it’s working fine again.
 * For others having the same problem with GMail SMTP, before giving up, you might
   try this. These files need to be edited:
 * helpers/email.php
    helpers/mailer.php models/config.php
 * just do a search for 465 and you’ll find that plus ‘ssl’
 * Change 465 to 587 and ssl to tls in those three files.
 * It worked for me. I don’t know if this is something set up on my host, or if 
   it’s a gmail thing.
 * For future updates, it might not be a bad idea to add something in the settings
   that the user can use, to change these two values if they’re having problems 
   getting SMTP to work.
 * [http://wordpress.org/extend/plugins/wysija-newsletters/](http://wordpress.org/extend/plugins/wysija-newsletters/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [forward123123](https://wordpress.org/support/users/forward123123/)
 * (@forward123123)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/using-gmails-smtp/#post-3517726)
 * Yikes, I’ve obviously screwed something up this time. It’s sending two copies
   of the email asking subscribers to confirm.
 * Any ideas?
 *  [Ben](https://wordpress.org/support/users/benheu/)
 * (@benheu)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/using-gmails-smtp/#post-3517895)
 * Hi,
 * Logically
    there is not need to change the port from within the code, you can
   simply go to **Wysija > Settings > Send With** … and select the **Third Party**
   option. This way you will be able to use gmail or any SMTP service and specify
   the port of your choice, and the authentication you want.
 * Cheers,
    Ben

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Gmail's SMTP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysija-newsletters_ffddcc.svg)
 * [MailPoet Newsletters (Previous)](https://wordpress.org/plugins/wysija-newsletters/)
 * [Support Threads](https://wordpress.org/support/plugin/wysija-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/wysija-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysija-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysija-newsletters/reviews/)

## Tags

 * [gmail](https://wordpress.org/support/topic-tag/gmail/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ben](https://wordpress.org/support/users/benheu/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/using-gmails-smtp/#post-3517895)
 * Status: resolved