flat-rose-25983
06/19/2024, 10:13 AMchilly-king-10285
06/19/2024, 10:13 AMchilly-king-10285
06/19/2024, 10:13 AMflat-rose-25983
06/19/2024, 11:14 AMchilly-king-10285
06/19/2024, 11:14 AMchilly-king-10285
06/19/2024, 11:14 AMbash ## List all available projects ory list projects ## Get config ory get identity-config <project-id> --format yaml > identity-config.yaml
2. Encode your custom template to base64 using the following command: bash echo "Your custom template" | base64
or use an online tool like https://www.base64encode.org/. 3. Add your Base64-encoded custom message templates to the config (don't forget to add base64:// before the encoded template): yaml courier: smtp: from_name: MyProject via Ory templates: recovery: invalid: email: body: html: "<base64://ENCODED_HTML_TEMPLATE>" plaintext: "<base64://ENCODED_PLAINTEXT_TEMPLATE>" valid: email: body: {} verification: invalid: email: body: {} valid: email: body: {} login: valid: email: body: {} registration: valid: email: body: {}
4. Upload the edited config: bash ory update identity-config <project-id> --file updated_config.yaml
In the Ory Network, you can use only Base64-encoded templates. http://
or file://
URIs are not supported. If you provide custom templates using unsupported methods, the system uses the default templates. For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/emails-sms/custom-email-templates#using-custom-message-templates).