Sending an email using NodeMailer & Gmail

Source: https://codeburst.io/sending-an-email-using-nodemailer-gmail-7cfa0712a799

inside your node.js file write
var transporter = nodemailer.createTransport({
 service: 'gmail',
 auth: {
        user: 'youremail@address.com',
        pass: 'yourpassword'
    }
});
We used gmail as our transport service.

Không có nhận xét nào:

Check to be sure that port 22 is enabled before you reload

 https://superuser.com/questions/590600/ufw-is-active-but-not-enabled-why etting  ENABLED=yes  in  /etc/ufw/ufw.conf  did it for me. $ sudo ...