Browse Source

Update 'MyConsumer/consumer.js'

master
PurpleRose 4 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({
service: 'gmail',
auth: {
user: 'iotprojectapi@gmail.com',
pass: 'iotproject77@'
user: 'senderEmail@gmail.com',
pass: 'senderPass'
}
});
//Initialize the mail options
var mailOptions = {
from: 'iotprojectapi@gmail.com',
to: 'taslaz77@gmail.com',
from: 'senderEmail@gmail.com',
to: 'receiver@gmail.com',
subject: 'Temperature Alert!!!',
text: `The temperature text...`
};

Loading…
Cancel
Save