I would like to make a custom recovery email (nice...
# ory-network
w
I would like to make a custom recovery email (nice styles, including a picture). I don't quite understand how to write it, or what the variable names I'm looking for are in terms of href or how to store the image I need? I read this: https://www.ory.sh/docs/kratos/concepts/email-sms#sender-address-and-template-customization But the only example is for verification, not recovery.
h
What would your ideal email look like?
w
An entire template really
h
Yes, you can do that. The link you provided is correct, in the example it says:
Copy code
recovery:
      # the configuration structure is the same as the verification
so recovery works exactly like verification
w
so in the example here: https://www.ory.sh/docs/kratos/concepts/email-sms#creating-templates for recovery I would use
{{ .RecoveryURL }}
?
h
exactly 🙂
w
Fantastic. And how would I go about including an image? (The fairy thing is an image) Should I include it in the config file or make it available as an external source?
h
depends, if it is small you can use a base64 encoded image: https://www.w3docs.com/snippets/html/how-to-display-base64-images-in-html.html
w
hopefully it is, i'll check it out, thanks!