sitename in for email templates We plan to deploy ...
# ory-selfhosting
s
sitename in for email templates We plan to deploy multiple kratos instances to customers, one per site (some sites may be mobile). We would like to customise each email (account verification or password reset) with the site name so the user knows which system they have received the email from. The only way I have found to push a site name into the namespace of the kratos email templates is to put the site name in the users public metadata. unfortunately if our custmer decides to change their sitename we have to update every user account. Can anyone think of an alternative way to push a sitename into emails from kratos? We have a local HTTP server which could serve the info but I don't think templates allow me to insert text from another http server..
b
You could use HTTP based email delivery, and let the HTTP server handle the email branding. https://www.ory.sh/docs/kratos/self-hosted/email-http\
g
if i want to maintain the smtp connection, could another alternative be building a docker image with kratos as base image per site (i don't know how many of them there are), then copying the site specific templates into each docker image. Building an image per site could be part of the ci pipeline