node.js email doesn't get sent with gmail smtp

前端 未结 8 2100
广开言路
广开言路 2021-01-31 17:55

I\'m trying to send the email gmail smtp but I\'m getting the error:

My email and password is correct I\'m using the nodemailer for sending the mail;

            


        
8条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 18:36

    https://myaccount.google.com/lesssecureapps

    Click on this link, On your Less secure app access. so after that gmail will send email to your device , confirm that it is you. You are done happy coding

提交回复
热议问题