Title: Two-Factor Authentication
Last modified: May 6, 2018

---

# Two-Factor Authentication

 *  Resolved [option75](https://wordpress.org/support/users/option75/)
 * (@option75)
 * [8 years ago](https://wordpress.org/support/topic/two-factor-authentication-6/)
 * Hello,
    I installed two-factor authentication for the e-mail I am using with 
   WP Forms. So, now I ma not getting any e-mails. I went to the debug section and
   it says authorization not granted or expired. How do I fix this so that I can
   get e-mails again. I did not know I was going to mess things up by setting up
   two factor authentication for my e-mail. Thanks for your help!

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

 *  [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * (@jquigam)
 * [8 years ago](https://wordpress.org/support/topic/two-factor-authentication-6/#post-10258818)
 * Hi option75,
 * Ok, I’ve shared this issue with our development team so that they can investigate
   it further.
 * In the meantime, could you please try re-confirming the authorization? In case
   it helps, this should be an orange button under the “Authorize redirect URI” 
   field (from [Step 3 of our setup tutorial](https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/#step-3)).
 * If you don’t see this button, try doing a hard refresh on the page.
 * Then, once you’ve done this, go ahead and try sending another test email.
 * When you’ve had a chance to give this a try, could you please let me know how
   it goes? Thanks! 🙂
 *  Thread Starter [option75](https://wordpress.org/support/users/option75/)
 * (@option75)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/two-factor-authentication-6/#post-10271018)
 * Hello,
 * Unfortunately, I had to go through all the steps and I got a successfully linked
   my site to my gmail account. However, I am getting an error saying that I need
   to login. I can’t send a test account. I have attached a screenshot of the error.
   I hope that you can help me with this. The plugin was working properly before.
   Or should I just uninstall/delete the plugin and reinstall? I prefer not since
   it is a lot of work to set up the web application in my gmail account. So, can
   you please look at the error and let me now know how I can fix this? Actually,
   I cannot attach here but I copied and pasting it here:
 * “There was a problem while sending a test email. Related debugging output is 
   shown below:
 * Versions:
    WordPress: 4.9.5 WordPress MS: Yes PHP: 5.6.36 WP Mail SMTP: 1.2.5
 * Params:
    Mailer: gmail Constants: No Client ID/Secret: Yes Auth Code: Yes Access
   Token: No
 * Server:
    OpenSSL: Yes PHP.allow_url_fopen: No PHP.stream_socket_client(): Yes
   PHP.fsockopen(): Yes PHP.curl_version(): Yes
 * Debug:
    Error while sending via Gmail mailer: { “error”: { “errors”: [ { “domain”:“
   global”, “reason”: “required”, “message”: “Login Required”, “locationType”: “
   header”, “location”: “Authorization” } ], “code”: 401, “message”: “Login Required”}}
 * Thank you,
    Janet
 *  [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * (@jquigam)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/two-factor-authentication-6/#post-10279602)
 * Hi Janet,
 * I’m sorry to hear you ran into issues in this setup process!
 * The error you’re seeing occurs when Google doesn’t think you’ve provided authorization
   yet (the orange button in [Step 3 of our tutorial](https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/#step-3)).
 * Here are the best next steps:
 * 1) Try going back through the tutorial (repeat all steps and recopy any details).
   This can be frustrating, however in many cases it will catch something that was
   missed the first time around.
 * 2) If you repeat all of the steps and still see this same issue, next you’ll 
   need to reach out to your site’s hosting provider. In some cases the host will
   have some kind of block in place that prevents this from working properly, and
   they should be able to investigate this further for you.
 * 3) Last, if your host is unable to provide the assistance you need, you could
   consider [one of our other recommended SMTP options](https://wpforms.com/docs/how-to-fix-wordpress-contact-form-not-sending-email-with-smtp/)
   also.
 * I hope this helps! 🙂

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

The topic ‘Two-Factor Authentication’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/two-factor-authentication-6/#post-10279602)
 * Status: resolved