set up mail plugin and environment

This commit is contained in:
2026-09-22 10:24:03 +02:00
parent 2e920a96e7
commit 70f6f92f00
4 changed files with 35 additions and 0 deletions
+16
View File
@@ -138,6 +138,22 @@ const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Plugin =>
},
},
},
email: {
config: {
provider: "@strapi/provider-email-nodemailer",
providerOptions: {
host: env("SMTP_HOST", "smtp.office365.com"),
port: env("SMTP_PORT", 587),
auth: {
user: env("SMTP_USERNAME"),
pass: env("SMTP_PASSWORD"),
},
},
settings: {
defaultFrom: "contact@moonladder.net",
}
},
}
});
export default config;