Commit c0a77d08 authored by Internship UKSW 2019's avatar Internship UKSW 2019

Initial commit

parent ee3f831e
...@@ -14,23 +14,24 @@ const sendEmail = (request, response) => { ...@@ -14,23 +14,24 @@ const sendEmail = (request, response) => {
<p>${message}</p> <p>${message}</p>
` `
let transporter = nodemailer.createTransport({ let transporter = nodemailer.createTransport({
// host: 'smtp.gmail.com', host: 'smtp.gmail.com',
// service: 'Gmail', // service: 'Gmail',
host: 'mta.visionet.co.id', // host: 'mta.visionet.co.id',
port: 587, port: 587,
secure: false, secure: false,
auth: { auth: {
user: 'prastowo.nugroho.int@visionet.co.id', user: 'vdocmanagement@gmail.com',
pass: '02Maret2020' pass: 'docmgmt123'
}, },
// auth: {
// user: 'prastowo.nugroho.int@visionet.co.id',
// pass: '02Maret2020'
// },
tls: { tls: {
rejectUnauthorized: false rejectUnauthorized: false
}, },
// debug: true // debug: true
// auth: {
// user: 'vdocmanagement@gmail.com',
// pass: 'docmgmt123'
// },
}) })
let maillist = [ let maillist = [
...@@ -39,7 +40,7 @@ const sendEmail = (request, response) => { ...@@ -39,7 +40,7 @@ const sendEmail = (request, response) => {
maillist.forEach(function (to, i, array) { maillist.forEach(function (to, i, array) {
let mailOptions = { let mailOptions = {
from: 'prastowo.nugroho.int@visionet.co.id',//'vdocmanagement@gmail.com' from: 'vdocmanagement@gmail.com',//'prastowo.nugroho.int@visionet.co.id'
cc: emailcc, cc: emailcc,
subject: subject, subject: subject,
text: message, text: message,
......
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