<@U04UQ68083H> How to set SMTP credentials from AW...
# ory-copilot
b
@chilly-king-10285 How to set SMTP credentials from AWS SimpleEmailService?
c
A message from kapa.ai
To use AWS Simple Email Service (SES) SMTP with Ory, configure a custom SMTP server in your project. Steps: 1) In Ory Console: Authentication → Email configuration → Advanced Settings → choose SMTP and enter your SES details. Or use the CLI and update your identity config as below. [[Send emails using your SMTP server](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp)] Example config (CLI):
Copy code
yaml courier:   delivery_strategy: smtp   smtp:     connection_uri: smtp://<SMTP_USERNAME>:<SMTP_PASSWORD>@email-smtp.<region>.<http://amazonaws.com:587/|amazonaws.com:587/>     from_address: <mailto:no-reply@your-domain.com|no-reply@your-domain.com>     from_name: Your App
- Replace <region> (e.g., eu-central-1) and set a verified sender domain/address in SES. [[SMTP integrations](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp#smtp-integrations)] Important: - URL-encode the SMTP username and password in the URI (especially if they contain special characters), otherwise Ory will reject the config. [[Use a custom server](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp); [Invalid SMTP URL](https://www.ory.sh/docs/troubleshooting/smtp-courier-OTA-112022-01)] - You can only change from_address/from_name when using your own SMTP server (not the default Ory sender). [[SMTP address not settable](https://www.ory.sh/docs/debug/smtp-courier-1)] AWS SES example:
Copy code
<smtp://theuser:the-password@email-smtp.eu-central-1.amazonaws.com:587/>
(Ensure credentials are percent-encoded.) [[SMTP integrations](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp#smtp-integrations)]
b
@chilly-king-10285 These are emails sent through Ory.
c
A message from kapa.ai
If you’re using the default Ory sender, emails are sent from: {project.name} via Ory <no-reply@courier-eu.mg.oryapis.com>, and you can’t change from_address/from_name unless you configure your own SMTP. [[Use a custom server](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp); [SMTP “from” not settable](https://www.ory.sh/docs/debug/smtp-courier-1)] If you want emails to come from your domain (e.g., via AWS SES), set a custom SMTP server:
Copy code
yaml courier:   delivery_strategy: smtp   smtp:     connection_uri: smtp://<SMTP_USERNAME>:<SMTP_PASSWORD>@email-smtp.<region>.<http://amazonaws.com:587/|amazonaws.com:587/>     from_address: <mailto:no-reply@your-domain.com|no-reply@your-domain.com>     from_name: Your App
Make sure the credentials are percent-encoded and the sender is verified in SES. [[Use a custom server](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp); [SMTP integrations](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp#smtp-integrations)] Tip: The “Sent” status in Email Delivery means Ory handed the message to your SMTP provider. For non-arrivals, check your provider’s logs (or spam), and consider a custom SMTP if you use a custom domain to avoid spam filtering. [[Troubleshooting](https://www.ory.sh/docs/kratos/emails-sms/sending-emails-smtp#troubleshooting); [Automated emails](https://www.ory.sh/docs/guides/custom-domains#automated-emails)]