Title: Cannot add https://connect.wpmailsmtp.com/google/
Last modified: September 2, 2021

---

# Cannot add https://connect.wpmailsmtp.com/google/

 *  Resolved [osaez](https://wordpress.org/support/users/osaez/)
 * (@osaez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-https-connect-wpmailsmtp-com-google/)
 * When creating the credentials in GCP for this plug in, I’m unable to add this
   string
 * [https://connect.wpmailsmtp.com/google/](https://connect.wpmailsmtp.com/google/)
 * into the URI. The modal complains with the following error…
 * Invalid Origin: URIs must not contain a path or end with “/”.
 * If I remove the last “/” in the page and enter only [https://connect.wpmailsmtp.com/google](https://connect.wpmailsmtp.com/google)
 * then I get the following message when I authorize the plug in.
 *     ```
       Error 400: redirect_uri_mismatch
       You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cloud Console.
       ```
   
 * … Please advise, and thanks for your support!

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

 *  Thread Starter [osaez](https://wordpress.org/support/users/osaez/)
 * (@osaez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-https-connect-wpmailsmtp-com-google/#post-14836488)
 * I sincerely appreciate any help here!!!
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-https-connect-wpmailsmtp-com-google/#post-14841908)
 * Hi [@osaez](https://wordpress.org/support/users/osaez/),
 * Thanks for reaching out. I apologize for any confusion here. The redirect URL
   should be added to the ‘Authorized Redirect URIs’ section in your app. It sounds
   like you’re adding that in the ‘Authorized JavaScript Origins’. In case it helps,
   here’s the [screenshot](https://d.pr/draw/trV1kt/) for quick reference.
 * I hope this helps!

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

The topic ‘Cannot add https://connect.wpmailsmtp.com/google/’ 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

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

 * 2 replies
 * 2 participants
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/cannot-add-https-connect-wpmailsmtp-com-google/#post-14841908)
 * Status: resolved