<@U04UQ68083H> In Ory Kratos, I want to send e-mai...
# ory-copilot
f
@chilly-king-10285 In Ory Kratos, I want to send e-mails through kratos courrier and set specific header for each template, can I ?
c
A message from kapa.ai
Yes, you can set specific headers for each template in Ory Kratos. You can configure custom SMTP headers in the
courier
section of your Kratos configuration file. For example, if you're integrating with AWS SES SMTP interface, you can configure the headers for cross-account sending like this:
Copy code
yaml courier:    smtp:     headers:      X-SES-SOURCE-ARN: arn:aws:ses:us-west-2:123456789012:identity/example.com      X-SES-FROM-ARN: arn:aws:ses:us-west-2:123456789012:identity/example.com      X-SES-RETURN-PATH-ARN: arn:aws:ses:us-west-2:123456789012:identity/example.com
This configuration should be placed in your Kratos configuration file (e.g.,
path/to/my/kratos/config.yml
). For more details, you can refer to the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-hosted/mail-courier-selfhosted#custom-smtp-headers).
f
@chilly-king-10285 but those headers look common for all e-mails, so there are not specific for one e-mail.
c
A message from kapa.ai
New message text here