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

Initial commit

parent c0a77d08
...@@ -14,24 +14,23 @@ const sendEmail = (request, response) => { ...@@ -14,24 +14,23 @@ 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: 'vdocmanagement@gmail.com', user: 'prastowo.nugroho.int@visionet.co.id',
pass: 'docmgmt123' pass: '02Maret2020'
}, },
// 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 = [
...@@ -40,10 +39,10 @@ const sendEmail = (request, response) => { ...@@ -40,10 +39,10 @@ const sendEmail = (request, response) => {
maillist.forEach(function (to, i, array) { maillist.forEach(function (to, i, array) {
let mailOptions = { let mailOptions = {
from: 'vdocmanagement@gmail.com',//'prastowo.nugroho.int@visionet.co.id' from: 'prastowo.nugroho.int@visionet.co.id',//'vdocmanagement@gmail.com'
cc: emailcc, cc: emailcc,
subject: subject, subject: subject,
text: message, text: "Hello World",
html: htmlEmail html: htmlEmail
} }
mailOptions.to = to; 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