https://www.ory.sh/ logo
#general
Title
# general
p

purple-apple-47041

03/05/2022, 7:28 PM
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

swift-chef-97535

03/05/2022, 7:31 PM
@User what do you mean by “remote template” and how it the network configured
p

purple-apple-47041

03/05/2022, 7:32 PM
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

high-exabyte-80361

03/07/2022, 7:26 AM
Can confirm that remote templates work. But make sure you use the latest build from master.
m

magnificent-energy-493

03/09/2022, 8:26 AM
Good to hear you are still with us Anthony 🙂