Error sending email using nodemailer via Office365 smtp (MEANjs scaffold)

前端 未结 4 1457
隐瞒了意图╮
隐瞒了意图╮ 2020-12-31 17:54

I\'m trying to use Office365 SMTP to send email using Nodemailer (in a MEANjs scaffold), but I get the following error:

[Error: 140735277183760:error:140770F         


        
4条回答
  •  臣服心动
    2020-12-31 18:39

    This nodemailer documentation https://nodemailer.com/2-0-0-beta/setup-smtp/ indeed states options.secure and not options.secureConnection. It also suggests, in an example, that options.secure is expecting a boolean value true or false and not a string value 'true' or 'false'. Removing the '' from around 'false' works for me.

提交回复
热议问题