generated from freeCodeCamp/template
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use ses as production email provider (#334)
- Loading branch information
1 parent
2f7c227
commit 8d1a173
Showing
2 changed files
with
15 additions
and
9 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 |
---|---|---|
|
@@ -6,17 +6,17 @@ module.exports = ({ env }) => ({ | |
config: { | ||
provider: "nodemailer", | ||
providerOptions: { | ||
host: env("NODEMAILER_HOST", "localhost"), | ||
secure: false, | ||
port: 1025, | ||
host: env("AWS_SES_HOST"), | ||
secure: true, | ||
port: 465, | ||
auth: { | ||
user: "test", | ||
pass: "test", | ||
}, | ||
tls: { | ||
rejectUnauthorized: false, | ||
user: env("AWS_SES_KEY"), | ||
pass: env("AWS_SES_SECRET"), | ||
}, | ||
}, | ||
settings: { | ||
defaultFrom: "[email protected]", | ||
}, | ||
}, | ||
}, | ||
}); |
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