Not able to connect to outlook.com SMTP using Nodemailer

前端 未结 3 1230
北恋
北恋 2021-02-04 03:58

I am creating the transport object like this.

var transport = nodemailer.createTransport(\"SMTP\", {
        host: \"smtp-mail.outlook.com\", // hostname
                


        
3条回答
  •  耶瑟儿~
    2021-02-04 04:27

    If you are using Nodemailer 1.x or greater you can use:

    var transporter = nodemailer.createTransport('smtp://username%40outlook.com:password@smtp-mail.outlook.com');
    

提交回复
热议问题