Use XOAuth2 with PHPMailer?

(4 posts) (2 voices)


No tags yet.

  1. duane, Member

    Hi. Another issue that has arrisen due to gmail I think: my smtp sending via email (Google Workspace) has started failing (Error: SMTP connect() failed. server error: Called RSET without being connected)

    From my investigation so far, it looks like Google is no longer allowing SMTP sending via the "Less secure app" option. See

    PHPMailer seems to allow using XOAUTH2 to authenticate instead, but this would need to be enabled via the mydbr settings (otherwise I'd need to edit the PHPMailer code directly). Is this something you can/plan to add?


  2. myDBR Team, Key Master

    You are using Google's app password in mail settings?

    We can take a look at adding XOAUTH2.

    myDBR Team

  3. duane, Member

    > You are using Google's app password in mail settings?

    Yes - I was using the SMTP of Google Workspaces (legacy account) which has stopped working as of last Thursday/Friday. Gmail-only users lost this in May 2022 but it seems they are now applying it to other gmail accounts.

  4. myDBR Team, Key Master

    Google XOAUTH2 authentication has been added into myDBR 6.6.2.

    myDBR Team


You must log in to post.