Im using amazon ses as my email provider in strapi and i have a smtp username and password how should i put them in the provider options? i couldn’t find any docs for it
This topic has been created from a Discord post (1292858943676092478) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
Are you trying to use an email provider?
I personally use the NodeMailer
provider and then use @aws-sdk/client-ses
to allow my instance to pick up the credentials from the instance itself.
This is my config for email:
import * as aws from "@aws-sdk/client-ses";
const ses = new aws.SES({
region: process.env.AWS_REGION,
});
export default ({ env }) => ({
email: {
config: {
provider: env('EMAIL_PROVIDER'),
providerOptions: {
SES: { ses, aws },
},
settings: {
defaultFrom: env('EMAIL_ADDRESS_FROM'),
defaultReplyTo: env('EMAIL_ADDRESS_REPLY_TO'),
},
},
},
});
Of course I’m running my Strapi instances on ECS Fargate so I can pass in the task role with the SES permissions.
There is an alternative: @strapi/provider-email-amazon-ses - npm