On Thu 11 Jan 2018 at 14:42, Robert Pluim wrote: > Cesar Crusius writes: > >> (snip) >> + >> +\(add-to-list 'smtpmail-try-auth-method 'xoauth2)") > ^^^^^^^^^^^^^^^^^^^^^^^^ > This should say smtpmail-auth-supported, no? Oops, yes. Sorry about that. > FWIW, I've tried your patch, and it doesn't break anything for me with > gmail, although I haven't tried enabling XOAuth2 yet. That will need an upcoming 'auth-source-xoauth2' package, as getting the password involves doing some HTTP fetching. I have the code, just need to find some time to add it to MELPA. -- Cesar Crusius