|
|
@ -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...` |
|
|
|
}; |
|
|
|