set up mail plugin and environment
This commit is contained in:
@@ -143,6 +143,13 @@ UPLOAD_MAX_FILE_SIZE=52428800
|
||||
# Cache-Control max-age (ms) for files served by the local upload provider.
|
||||
UPLOAD_LOCAL_MAX_AGE=300000
|
||||
|
||||
SMTP_HOST=smtp.example.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USERNAME=your-username
|
||||
SMTP_PASSWORD=your-password
|
||||
DEFAULT_FROM=no-reply@yourdomain.com
|
||||
DEFAULT_REPLY_TO=support@yourdomain.com
|
||||
|
||||
# Production only - switching the upload provider to S3. Uncomment these after
|
||||
# adding @strapi/provider-upload-aws-s3 and editing the upload block in
|
||||
# config/plugins.ts (the switch is documented there step by step).
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
"@strapi/database": "5.53.0",
|
||||
"@strapi/plugin-cloud": "5.53.0",
|
||||
"@strapi/plugin-users-permissions": "5.53.0",
|
||||
"@strapi/provider-email-nodemailer": "^5.54.0",
|
||||
"@strapi/strapi": "5.53.0",
|
||||
"pg": "^8.23.0",
|
||||
"react": "^18.0.0",
|
||||
|
||||
Reference in New Issue
Block a user