• Resolved nvertoletik

    (@nvertoletik)


    Hi all,
    I’m trying to set the Gmail integration I have been following this documentation, and everything goes fine until the configuration of the Authorized redirect URI. In the doc it is stated that the link should contain my site url or be related to it in some way to validate it in the Google Console. However, the link provided in my case points to https://connect.wpmailsmtp.com/google/, making it impossible to finish the mail configuration.

    I had initially configured the plugin correctly in my dev environment, but in prod it is when I’m facing this issue.

    I’m running WordPress 5.5.1 with PHP 7.4.10, the plugin version is 2.5.0.

    TIA

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi @nvertoletik,

    in the latest version v2.5 (updated 1 day ago) of our plugin we changed the way the redirect URI and Google oAuth process works.

    A lot of users had issues with WP security plugins or with mod_security, so we implemented a few changes to resolve those issues.

    You now have to add this new redirect URI to your Google oAuth app in the Google developer console (wait a few minutes for the added redirect URI to update on Google side) and then you’ll be able to successfully finish the Google Authorization in our plugin.

    I’m sorry for this confusion and have a nice day!

    Thread Starter nvertoletik

    (@nvertoletik)

    Hi @capuderg,

    Thank you for the response, the plugin is now working correctly.

    Just one last question, can I remove the other URI’s from the Google oAuth app and only leave the new one?

    It would have been nice to have made this change nice and clear right next to the authorised redirect setting. I’ve just spent a reasonable amount of time trying to figure out what has changed. I wasn’t having any issues before. I was expecting to see the usual url I’ve always been seeing. This might be costing you guys a star.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @nvertoletik,

    yes, you can remove the other URI from the Google oAuth app if you want. You will just need to use the latest version of our plugin on all your WP sites (if you are using the same Google oAuth app on any other WP site).

    Take care!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @sean-h,

    the Google Authorization should be performed just once, when the plugin is being set up for the first time. So, a new user should probably follow the documentation (we will update the part @nvertoletik mentioned) and successfully complete the Gmail mailer setup in our plugin.

    I’m really sorry if this caused issues for you as an existing plugin user.

    Have a nice day!

    Hi @capuderg

    After a bit of head scratching I did manage to set it up anyway, and now I know for next time. ??

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @sean-h,

    awesome! ??

    Have a nice day!

    WOW… I have about 20 clients sites connected with your plugin via Gmail API and ALL of them disconnected a few weeks ago! The settings in your plugin reverted back to the basic PHP setting and a phony email “[email protected]” was placed in the “From Email” section. I have spent a considerable amount of time in the last few weeks trying to figure out what in the world is going on, and just stumbled across this tonight. I am glad to find a solution, but I agree that this could have been made more aware. It has been a very time consuming problem that I have had to face and now I need to go back and login to all of those clients emails and reconnect their sites.

    I want to add, up until this point, the “WP Mail SMTP” plugin has worked beautifully and I am very glad to have it. I am just expressing my frustration in regards to this most recent change.

    Thanks for all you guys do and I am very thankful to you @nvertoletik for posting this!

    I had forgotten about this thread. The problems got solved and life went on, sort of. ??

    Yes, it was somewhat annoying, but in hindsight, there are far bigger problems in the world at the moment. As it is right now, it takes me about 5 mins to set SMTP up from scratch with Gmail, and even less time to reconnect as I’ve done it enough times now. It is one of the first default plugins I install on every site I build. This includes creating admin@mydomain for each new site and using that for all WP generated emails. You could also use no-reply@, whatever you want. This way, all site emails appear to originate from their own address, and not my main generic Gmail address. So it’s very easy to tell which site has just emailed you. You set this up using aliases in your Gmail account. And this with the free version.

    Tip of the day, at least this is what works for me: I manage 12 sites right now, most of them mine, but more client sites coming soon. I have a bookmarks folder with a direct link to all the WP dashboards I manage, and I never deliberately log out. So, if something like this happens again and I need to go in and reconnect all of them, or make any other global changes, I just right click on the folder and ‘open all in new window’. And this is on a 9 year old MacBook Pro 13″, with 16GB RAM. This also barely makes a tiny dent in my shared hosting resource usage opening all site admins at once. Bob’s you uncle.

    • This reply was modified 4 years, 4 months ago by Sean.

    @sean-h I totally agree about this being miniscule in comparison to a lot of other things. I also appreciate the info and the suggestion. I don’t want to sound like a jerk, because I really love this plugin and have been using it for years. I am just saying that it was a pretty big issue for me and my company. It may only take 5 mins to set up a site, but is still takes time to go through all 20 sites and change them to my email temporarily, research the problem, and then fix the issue.

    Also, I found out that there was even a problem through one of my clients, because he said he lost a potential client due to them not being able to reach him through the form. Ultimately, he was really upset about it and I had no answers for him or any of the other 19 clients as the weeks went on. It is refreshing to find a solution after 2 weeks of researching, for sure! I login to all of my clients (roughy 50 sites) monthly and update them and review the dashboard for potential errors. There were no errors on the dashboard, so as far as I know there was really no way for me to know of these changes, unless I was running tests on the forms or just randomly double-checking the SMTP settings.

    Once again, I am not trying to be a jerk. I am just saying that a change like this would have been nice to get a heads up or something. Lastly, I thank the creators of the plugin for all their hard work. I have experienced the issues they mentioned with the Gmail connections in the past, so it is nice to hear they fixed those issues. Anyways, be blessed and stay safe out there.

    One more quick tip; I have Wordfence, and I’ve set it to email me with a summary once a week. If I don’t get that email, SMTP isn’t working.

    Thanks for the tip on Wordfence! I will look into that ??

    I responded to you other message, but I don’t think you can see it. It says it needs to be reviewed first.

    I got the email notice already, but for some reason it wasn’t published. It does that to me too sometimes.

    If not Wordfence (which I have on all my sites), you just need to find something else you can set to send you a regular email, even daily, if it’s a very important site.

    But it’s things like this that have ‘dictated’ my maintenance routines/processes/workflows. Once every few days when I sit down at my desk with my coffee, in this case the dining room table, I open all site dashboards at once and run Site Health one by one and check for updates, among other things. I then run updates manually and verify. I generally start with my hobby sites then move on to the ones that actually earn me money.

    I think this is just the nature of the beast when it comes to web dev. As a whole, it is not a set it and forget it thing, and never will be as far as I can see. At least it would be fantastic if we could fully trust auto updates to just work and never break anything.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @visionbranded,

    I think something else happened to your WP Mail SMTP settings. This change of the redirect URL in Gmail connection should not affect existing Gmail mailer connections.

    From what you described it looks like the automatic WP updates corrupted the WP Mail SMTP settings. For more information, please read this forum thread.

    I’m so sorry for all the frustration this caused you.

    Take care!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Authorized redirect URI not populating correctly’ is closed to new replies.