Hardware Reference
In-Depth Information
} else {
console . log ( 'Message sent: ' + info . response );
}
});
// Nodemailer is licensed under MIT license
// (https://github.com/andris9/Nodemailer/blob/master/LICENSE).
// Basically you can do whatever you want to with it
Then run the script to send the email:
bone# chmod +x nodemailer-test.js
bone# .\nodemailer-test.js
WARNING
This solution requires your Gmail password to be in plain text in a file, which is a security
problem. Make sure you know who has access to your Bone. Also, if you remove the mi-
croSD card, make sure you know who has access to it. Anyone with your microSD card can
read your Gmail password.
Search WWH ::




Custom Search