-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
28 lines (23 loc) · 1.08 KB
/
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
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: "smtp.hostinger.com", //server SMTP
port: 587,
secure: false,
auth: {
user: "[email protected]",
pass: "Nanny@18", // PASSWORD OF GOOGLE XANDDYBR- ojbe skqv holy scrb
},
});
async function main() {
// send mail with defined transport object
const info = await transporter.sendMail({
from: '"Catarse I.E" <[email protected]>', // sender address
to: "[email protected]", // list of receivers
subject: "Sua apostila de brinde acaba de chegar!", // Subject line
text: "", // plain text body
html: "<h1>Ola!</h1><br><br> Você acaba de receber em anexo o seu brinde, a lei a com calma e atneção para, e começe hoje mmesmo a dar os primeiros passos na sua tranformação pessoal! <br><br> https://smallpdf.com/file#s=c72b24c0-f00c-4f8d-9d6a-06503a87ce80", // html body
attachments: [{ filename: "catarseie_gift.pdf", path: "./catarseie_gift.pdf" }],
});
console.log(info.messageId + " - " + info.response);
}
main().catch(console.error);