UNPKG

@strapi/provider-email-amazon-ses

Version:

Amazon SES provider for strapi email

17 lines (14 loc) 523 B
import { SESClient, SendEmailCommand } from '@aws-sdk/client-ses'; import { getClientConfig, buildSendEmailCommandInput } from './utils.mjs'; var index = { init (providerOptions, settings) { const client = new SESClient(getClientConfig(providerOptions)); return { async send (options) { await client.send(new SendEmailCommand(buildSendEmailCommandInput(options, settings))); } }; } }; export { index as default }; //# sourceMappingURL=index.mjs.map