Missing credentials for “PLAIN” nodemailer

后端 未结 6 1694
清歌不尽
清歌不尽 2020-12-03 10:47

I\'m trying to use nodemailer in my contact form to receive feedback and send them directly to an email. This is the form below.

6条回答
  •  借酒劲吻你
    2020-12-03 11:41

    You have

    auth: {
        user: 'user@gmail.com',
        password: 'password'
    }
    

    But you should write this

    auth: {
        user: 'user@gmail.com',
        pass: 'password'
    }
    

    Just rename password to pass.

提交回复
热议问题