1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-05 20:10:37 +00:00

Disabling xoauth2 since it doesn't appear to be working with gmail

From what I can see, the google xoauth2 specs require the token to be an access token, rather than just the user's password.

But I could be wrong, has the xoauth2 auth been tested and found to be working?
This commit is contained in:
Louis Orenstein 2013-08-16 18:09:17 -06:00
parent c03ca40047
commit d80e666119

View File

@ -472,7 +472,7 @@ SMTP.prototype =
// less preferred methods.
if(!method)
{
var preferred = [AUTH_METHODS.XOAUTH2, AUTH_METHODS.CRAM_MD5, AUTH_METHODS.LOGIN, AUTH_METHODS.PLAIN];
var preferred = [AUTH_METHODS.CRAM_MD5, AUTH_METHODS.LOGIN, AUTH_METHODS.PLAIN, AUTH_METHODS.XOAUTH2];
for(var i = 0; i < preferred.length; i++)
{