Skip to content

Commit

Permalink
backedout SES
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcoombs2000 committed Apr 15, 2024
1 parent 25e2b04 commit 5d12950
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions config/mailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[email protected]',
//pass: process.env.EMAIL_PASSWORD
//},
// SES: {ses, aws},
// sendingRate: 1
host: "mail.zmaartcc.net",
port: 587,
secure: false,
ignoreTLS: true,
auth: {
user: '[email protected]',
pass: process.env.EMAIL_PASSWORD
},
});

transport.use('compile', neh({
Expand Down

0 comments on commit 5d12950

Please sign in to comment.