Hi team, We are using Ory Cloud and our use case (...
# talk-kratos
j
Hi team, We are using Ory Cloud and our use case (for invite flow, related to this discussion) requires us to have a custom email subject depending on the identity traits. I would like just to double check if it is possible? As per further research [reference], it seems that it is only possible for self hosted Ory instances via config. Thanks in advance!
cc: @stale-petabyte-47458
b
The subject can use the same variables as the body can. And this is also possible in Ory Network. Just not very clear in the UI. If you use the CLI and encode the template as base64, you can do the same conditional logic as is described in the body section. No need to include other files, just put your content in between the #if statements. Or use #define as described.
j
Thank you @bland-eye-99092 🙏 @stale-petabyte-47458 mind verifying this please?
s
Thanks @bland-eye-99092! I test this out.
Thanks @bland-eye-99092! When we did what you suggested, the code is actually showing in the UI.
So yeah, the UI accepts GO syntax and we can modify it from there
Just in case,
@bland-eye-99092, if you have some free time, hope you can visit this thread for another question/issue. Thanks in advance!