I'm trying to set up a mail account using OAuth following the instructions here and here.

I've set up OAuth in Administer > System Settings > OAuth: Screenshot showing confirmed Gmail OAuth connection

But when I go to Administer > CiviMail > Mail Accounts I still just see the regular Add Mail Account button, not a drop down that allows me to choose and OAuth account: Screenshot showing Add Mail Account button

What have I missed?

Edit: Drupal 7.82 and CiviCRM 5.43.2.

  • 1
    I'm able to replicate this on CiviCRM 5.43.2 and Drupal 9 Nov 27 '21 at 1:00
  • 1
    Using the API4 explorer when I check OAuthProviders I don't see a mailSettingsTemplate -> fz-action.fudev.co.nz/civicrm/api4#/explorer/OAuthProvider/… but I do on a site where this is working. Nov 27 '21 at 1:10
  • I have no experience with the API. In the extensions manager it says API4 is obsolete. Is that related? Nov 29 '21 at 10:00
  • 1
    Maybe - api4 was moved into a core extension. I'd uninstall it, then remove the folder where you have the old api4 extension. But it sounds like there's something else too.
    – Demerit
    Nov 29 '21 at 22:01

I think there was a recent change that broke it. This PR should fix it: https://github.com/civicrm/civicrm-core/pull/22169

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.