-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
35 lines (28 loc) · 891 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var nodemailer = require("nodemailer");
var smtpTransport = nodemailer.createTransport("SMTP",{
service: "Gmail", // sets automatically host, port and connection security settings
auth: {
user: "[email protected]",
pass: "yourPassword"
}
});
smtpTransport.sendMail({
from: "Sender Name <[email protected]>",
to: "Receiver Name <[email protected]>",
subject: "Não ta curioso pra saber quem é?",
text: "Eai GERMANO MENDONCA LOCURA você está sendo convidado para uma conversa reservada no eTalk2me"
}, function(error, response){
if(error){
console.log(error);
}else{
console.log("Message sent: " + response.message);
}
smtpTransport.close();
});
var smtpTransport = nodemailer.createTransport("SMTP",{
service: "Gmail",
auth: {
user: "[email protected]",
pass: "yourPassword"
}
});