Browse Source

Update 'MyConsumer/consumer.js'

master
PurpleRose 3 years ago
parent
commit
f9b0c0933a
  1. 8
      MyConsumer/consumer.js

8
MyConsumer/consumer.js

@ -8,14 +8,14 @@ var nodemailer = require('nodemailer');
var transporter = nodemailer.createTransport({ var transporter = nodemailer.createTransport({
service: 'gmail', service: 'gmail',
auth: { auth: {
user: 'iotprojectapi@gmail.com', user: 'senderEmail@gmail.com',
pass: 'iotproject77@' pass: 'senderPass'
} }
}); });
//Initialize the mail options //Initialize the mail options
var mailOptions = { var mailOptions = {
from: 'iotprojectapi@gmail.com', from: 'senderEmail@gmail.com',
to: 'taslaz77@gmail.com', to: 'receiver@gmail.com',
subject: 'Temperature Alert!!!', subject: 'Temperature Alert!!!',
text: `The temperature text...` text: `The temperature text...`
}; };

Loading…
Cancel
Save