diff --git a/cms/config/plugins.ts b/cms/config/plugins.ts index 56bf55f..36316ab 100644 --- a/cms/config/plugins.ts +++ b/cms/config/plugins.ts @@ -1 +1,17 @@ -export default () => ({}); +export default ({env}) => ({ + email: { + config: { + provider: 'amazon-ses', + providerOptions: { + key: env('AWS_SES_ACCESS_KEY_ID'), + secret: env('AWS_SES_ACCESS_KEY_SECRET'), + amazon: 'https://email.af-south-1.amazonaws.com', + }, + settings: { + defaultFrom: 'strapi@ss-hydro-pilot.gmv.com', + defaultReplyTo: 'strapi@ss-hydro-pilot.gmv.com', + }, + }, + } + +}); diff --git a/cms/package.json b/cms/package.json index a2b78d3..269fcc6 100644 --- a/cms/package.json +++ b/cms/package.json @@ -14,6 +14,7 @@ "@strapi/plugin-cloud": "4.25.13", "@strapi/plugin-i18n": "4.25.13", "@strapi/plugin-users-permissions": "4.25.13", + "@strapi/provider-email-amazon-ses": "5.1.1", "@strapi/strapi": "4.25.13", "pg": "8.8.0", "react": "^18.0.0",