lsb_release -a // cek version
sudo apt install nodejs
sudo apt install npm
npm init // make npm project
nodejs-sendEmail/
├── images/
├── node_modules/
├── app_contact.js
├── attachment_example.js
├── contact_form.html
└── send_email.js
npm install nodemailer
- It is recommended to have one active Google account
- Have an account that will be emailed or borrowed from friends.
/var/www/nodejs-sendEmail/send_email.js:19
if (err) throw err;
^
Error: Invalid login: 535-5.7.8 Username and Password not accepted.
- The password is incorrect.
- Security Settings in Gmail that don't allow third-party applications.
- Internet connection.
For point 2 active setting security in this link : https://myaccount.google.com/security