Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify email templates as separate configuration keys #2054

Closed
3 of 10 tasks
aeneasr opened this issue Dec 13, 2021 · 0 comments
Closed
3 of 10 tasks

Specify email templates as separate configuration keys #2054

aeneasr opened this issue Dec 13, 2021 · 0 comments
Assignees
Labels
feat New feature or request.

Comments

@aeneasr
Copy link
Member

aeneasr commented Dec 13, 2021

Preflight checklist

Describe your problem

Currently, you can override the whole directory of where email templates are mounted from using:

courier:
  template_override_path: /my/path

The problem with this is that we cannot use any remote locations, and it's difficult to specify precedence.

Describe your ideal solution

Instead, it should be possible to specify for each template the location:

courier:
  templates:
    recovery:
      invalid:
        email:
          plaintext: # base64://, https://, file://, ...
          html: # base64://, https://, file://, ...
        # In the future maybe:
        # sms: ...
    # recovery ...

Workarounds or alternatives

None so far, if you have better ideas please LMK :)

Version

master

Additional Context

@aeneasr aeneasr added the feat New feature or request. label Dec 13, 2021
aeneasr pushed a commit that referenced this issue Feb 8, 2022
It is now possible to override individual courier email templates using the configuration system!

Closes #2054
@aeneasr aeneasr closed this as completed Feb 8, 2022
aeneasr pushed a commit that referenced this issue Feb 11, 2022
It is now possible to override individual courier email templates using the configuration system!

Closes #2054
aeneasr pushed a commit that referenced this issue Feb 14, 2022
It is now possible to override individual courier email templates using the configuration system!

Closes #2054
peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this issue Jun 30, 2023
It is now possible to override individual courier email templates using the configuration system!

Closes ory#2054
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants