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

Initial commit

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