diff --git a/config/mailer.js b/config/mailer.js index 46b043b..7137db3 100644 --- a/config/mailer.js +++ b/config/mailer.js @@ -2,29 +2,29 @@ import nodemailer from 'nodemailer'; import neh from 'nodemailer-express-handlebars'; import path from 'path'; -let aws=require("@aws-sdk/client-ses"); -let { defaultProvider } = require("@aws-sdk/credential-provider-node"); +//let aws=require("@aws-sdk/client-ses"); +//let { defaultProvider } = require("@aws-sdk/credential-provider-node"); const __dirname = path.resolve(); -const ses= new aws.SES({ - apiVersion: "2012-10-17", - region: "us-east-1", - defaultProvider, -}); +//const ses= new aws.SES({ + //apiVersion: "2012-10-17", + //region: "us-east-1", + //defaultProvider, +//}); const transport = nodemailer.createTransport({ - SES: {ses, aws}, - sendingRate: 1 - //host: "mail.zmaartcc.net", - //port: 587, - //secure: false, - //ignoreTLS: true, - //auth: { - //user: 'no-reply@zmaartcc.net', - //pass: process.env.EMAIL_PASSWORD - //}, +// SES: {ses, aws}, +// sendingRate: 1 +host: "mail.zmaartcc.net", +port: 587, +secure: false, +ignoreTLS: true, +auth: { + user: 'no-reply@zmaartcc.net', + pass: process.env.EMAIL_PASSWORD + }, }); transport.use('compile', neh({