Title: SMTP setup error
Last modified: August 24, 2018

---

# SMTP setup error

 *  [Madquake](https://wordpress.org/support/users/madquake/)
 * (@madquake)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/smtp-setup-error/)
 * Hello,
 * I’m developing a landing page and at the moment I’m working on localhost.
 * I installed Contact Form 7 to send emails directly from the page, but these end
   into the spam folder in Gmail.
 * To sort out the problem I installed WP mail SMTP plugin.
 * I tried to set up the SMTP for gmail but when I tried to test the sending of 
   an email I got the following message: “There was a problem while sending the 
   test email.”
 * It says it could not autenticate your SMTP account.
 * I know there are two ways to set this up, one using an API key and the second
   using other SMTP options.
    Seen I’m working on localhost at the moment I opted
   for the second option.
 * The informations I provided are:
    SMTP host: smtp.gmail.com Encription: TLS SMTP
   port: 587 SMTP user name: the mail address I use to enter the gmail account SMTP
   password: the password I use to enter the gmail account
 * I am sure I did something wrong, but this is the very first time I use this plugin
   and this method.
 * Thank you for your help!

The topic ‘SMTP setup error’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Madquake](https://wordpress.org/support/users/madquake/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/smtp-setup-error/)
 * Status: not resolved