Hey all! Been a while since I sent a message in he...
# general
p
Hey all! Been a while since I sent a message in here. Has anyone had any luck referencing remote email templates for Kratos with http? Here is the snippet of my courier config:
Copy code
courier:
  smtp:
    connection_uri: smtps://<user>:<pass>@smtp.service.net:465/
    from_address: <mailto:hello@website.com|hello@website.com>
  templates:
    verification:
      valid:
        email:
          body:
            html: <https://website.com/verification/valid/email.body.gotmpl>
            plaintext: <https://website.com/templates/verification/valid/email.plaintext.gotmpl>
          subject: <https://website.com/templates/verification/valid/email.subject.gotmpl>
      invalid:
    recovery:
However when I spin up instance with docker and check the logs I keep getting the following error:
Copy code
^-- additionalProperties "templates" not allowed
Is there something I am missing here? Previously we were using local templates but we are attempting to switch to remote templates so it is easier to maintain / update. Any help would be appreciated, thanks!
s
@User what do you mean by “remote template” and how it the network configured
p
I was reading through the documentation here: https://www.ory.sh/docs/kratos/concepts/email-sms#remote-templates
And what do you mean about the network config?
Also thanks for the speedy reply!
h
Can confirm that remote templates work. But make sure you use the latest build from master.
m
Good to hear you are still with us Anthony 🙂