Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docusaurus/docs/cms/features/email.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ module.exports = ({ env }) => ({
provider: 'sendgrid', // For community providers pass the full package name (e.g. provider: 'strapi-provider-email-mandrill')
providerOptions: {
apiKey: env('SENDGRID_API_KEY'),
// region: 'eu', // Optional: set to 'eu' for EU data residency (default: 'global')
},
settings: {
defaultFrom: 'juliasedefdjian@strapi.io',
Expand All @@ -193,6 +194,7 @@ export default ({ env }) => ({
provider: 'sendgrid', // For community providers pass the full package name (e.g. provider: 'strapi-provider-email-mandrill')
providerOptions: {
apiKey: env('SENDGRID_API_KEY'),
// region: 'eu', // Optional: set to 'eu' for EU data residency (default: 'global')
},
settings: {
defaultFrom: 'juliasedefdjian@strapi.io',
Expand All @@ -209,6 +211,10 @@ export default ({ env }) => ({

</Tabs>

:::tip EU data residency
If you use a SendGrid API key created on the <ExternalLink to="https://app.eu.sendgrid.com" text="EU portal (app.eu.sendgrid.com)"/>, set `region: 'eu'` in `providerOptions`. EU API keys only work against the EU endpoint (`https://api.eu.sendgrid.com`); without this option, email delivery will fail with an `Unauthorized` error.
:::

:::note Notes

* When using a different provider per environment, specify the correct configuration in `/config/env/${yourEnvironment}/plugins.js|ts` (see [Environments](/cms/configurations/environment)).
Expand Down
Loading