Commit 14593fd1 authored by Internship UKSW 2019's avatar Internship UKSW 2019

Initial commit

parent c0a77d08
......@@ -14,24 +14,23 @@ const sendEmail = (request, response) => {
<p>${message}</p>
`
let transporter = nodemailer.createTransport({
host: 'smtp.gmail.com',
// host: 'smtp.gmail.com',
// service: 'Gmail',
// host: 'mta.visionet.co.id',
host: 'mta.visionet.co.id',
port: 587,
secure: false,
auth: {
user: 'vdocmanagement@gmail.com',
pass: 'docmgmt123'
user: 'prastowo.nugroho.int@visionet.co.id',
pass: '02Maret2020'
},
// auth: {
// user: 'prastowo.nugroho.int@visionet.co.id',
// pass: '02Maret2020'
// },
tls: {
rejectUnauthorized: false
},
// debug: true
// auth: {
// user: 'vdocmanagement@gmail.com',
// pass: 'docmgmt123'
// },
})
let maillist = [
......@@ -40,10 +39,10 @@ const sendEmail = (request, response) => {
maillist.forEach(function (to, i, array) {
let mailOptions = {
from: 'vdocmanagement@gmail.com',//'prastowo.nugroho.int@visionet.co.id'
from: 'prastowo.nugroho.int@visionet.co.id',//'vdocmanagement@gmail.com'
cc: emailcc,
subject: subject,
text: message,
text: "Hello World",
html: htmlEmail
}
mailOptions.to = to;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment