Skip to content

Commit 31a9fc6

Browse files
author
Levi Sørum
committed
feat: add email-nodemailer plugin with SMTP config
1 parent a97873f commit 31a9fc6

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

config/plugins.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ const config = ({
2323
},
2424
},
2525
},
26+
email: {
27+
config: {
28+
provider: "email-nodemailer",
29+
providerOptions: {
30+
host: env("SMTP_HOST"),
31+
port: env.int("SMTP_PORT", 587),
32+
secure: false,
33+
auth: {
34+
user: env("SMTP_USERNAME"),
35+
pass: env("SMTP_PASSWORD"),
36+
},
37+
},
38+
settings: {
39+
defaultFrom: "balve@garmeres.com",
40+
defaultReplyTo: "admin@garmeres.com",
41+
},
42+
},
43+
},
2644
});
2745

2846
export default config;

package-lock.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@strapi/plugin-cloud": "5.39.0",
19+
"@strapi/provider-email-nodemailer": "^5.40.0",
1920
"@strapi/provider-upload-aws-s3": "^5.39.0",
2021
"@strapi/strapi": "5.39.0",
2122
"better-sqlite3": "12.6.2",

0 commit comments

Comments
 (0)