Sending email via Node.js using nodemailer is not working

后端 未结 9 1828
悲&欢浪女
悲&欢浪女 2020-11-29 20:15

I\'ve set up a basic NodeJS server (using the nodemailer module) locally (http://localhost:8080) just so that I can test whether the server can actually send ou

9条回答
  •  再見小時候
    2020-11-29 21:10

    While the above answers do work, I'd like to point out that you can decrease security from Gmail by the following TWO steps.

    STEP #1

    Google Account: sign-in attempt blocked If this was you You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.

    STEP #2

    In addition to enabling Allow less secure apps, you might also need to navigate to https://accounts.google.com/DisplayUnlockCaptcha and click continue.

提交回复
热议问题