📜  错误:缺少“PLAIN”的凭据 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:01.584000             🧑  作者: Mango

代码示例2
var email_smtp = nodemailer.createTransport({      
  host: "smtp.gmail.com",
  auth: {
    type: "OAuth2",
    user: "youremail@gmail.com",
    clientId: "CLIENT_ID_HERE",
    clientSecret: "CLIENT_SECRET_HERE",
    refreshToken: "REFRESH_TOKEN_HERE"                              
  }
});