-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c873f24
commit 8600594
Showing
3 changed files
with
1,961 additions
and
1,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,28 @@ 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"); | ||
|
||
const __dirname = path.resolve(); | ||
|
||
const ses= new aws.SES({ | ||
apiVersion: "2012-10-17", | ||
region: "us-east-1", | ||
defaultProvider, | ||
}); | ||
|
||
const transport = nodemailer.createTransport({ | ||
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 | ||
}, | ||
}); | ||
|
||
|
Oops, something went wrong.