mirror of
https://github.com/eleith/emailjs.git
synced 2024-07-05 20:10:37 +00:00
added reference to google docs, and fixed function scope
This commit is contained in:
parent
b13082fd79
commit
11c9f87d8a
@ -458,11 +458,12 @@ SMTP.prototype =
|
||||
encode_plain = function()
|
||||
{
|
||||
return (new Buffer("\\0" + login.user() + "\\0" + login.password())).toString("base64");
|
||||
};
|
||||
},
|
||||
|
||||
encode_xoauth2 = function()
|
||||
{
|
||||
// console.log("user=" + login.user() + "\1auth=Bearer " + login.password()+"\1\1");
|
||||
// console.log("user=" + login.user() + "\1auth=Bearer " + login.password()+"\1\1");
|
||||
// see: https://developers.google.com/gmail/xoauth2_protocol
|
||||
return (new Buffer("user=" + login.user() + "\1auth=Bearer " + login.password()+"\1\1")).toString("base64");
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user