Title: Message error &#8211; settings problems
Last modified: January 30, 2018

---

# Message error – settings problems

 *  [worldfutureshift](https://wordpress.org/support/users/worldfutureshift/)
 * (@worldfutureshift)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/message-error-settings-problems/)
 * Hi, I am having a lot of troubles to connect my contact form 7 to my gmail.
 * I followed your instructions step by step ([https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/](https://wpforms.com/how-to-securely-send-wordpress-emails-using-gmail-smtp/))
   but I have this error message.
 * Morover, I use WP Mail SMTP and contact form 7. After setting the smtp, what 
   should I put in settings in my contact form 7?
 * Thank you for your help
 * Versions:
    WordPress: 4.9.2 WordPress MS: No PHP: 7.0.27 WP Mail SMTP: 1.2.4
 * Params:
    Mailer: gmail Constants: No Client ID/Secret: Yes Auth Code: No Access
   Token: No
 * Server:
    OpenSSL: Yes PHP.allow_url_fopen: Yes 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”}}
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmessage-error-settings-problems%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [worldfutureshift](https://wordpress.org/support/users/worldfutureshift/)
 * (@worldfutureshift)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/message-error-settings-problems/#post-9916747)
 * I managed to solve it, however, my contact form is still not working.
    Which 
   setting should I have to put in my contact form 7? I understood that if mails
   wasn’t working throught contact form, by setting your plugin this will resolve
   the problems but I think I am missing something. Thank you in advance for your
   help.
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/message-error-settings-problems/#post-9918683)
 * The contact form plugin itself may be broken somehow. CF7 users reported problems
   several times already here on a forum.
 * Try to use the same email address in this options:
    1) WP Mail SMTP setting: 
   From email address. 2) CF7 plugin for a form FROM email address setting.
 * That may or may not help you, but worth a try.

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

The topic ‘Message error – settings problems’ 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

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

 * 2 replies
 * 2 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/message-error-settings-problems/#post-9918683)
 * Status: not resolved