-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
How to add custom template #428
Comments
What do you mean "it's not working"? Perhaps check the Synapse logs ( |
I mean it sends the default template that I also don't know where it exists
and with this configuration, it starts with no errors and also keeps sending the default mail template |
Is this the configuration that you see in I'm not sure why Synapse wouldn't be loading your custom templates. |
that is what I can see right now because I had edited that part by adding
|
I hope you've put it in the correct place (that is, that you indentation is correct). If the templates are still not being loaded, you may try reporting the issue at the Synapse project. |
I think it's correct as I saw it in another issue but what I am asking about, is there any variable to activate that factuality in the ansible build ? |
Yes, as I mentioned above, you can use something like this: matrix_synapse_configuration_extension_yaml: |
email:
template_dir: /data/res/templates and then put your files in Also note: file ownership should be |
Did you get this solved? |
I think things may change about this if you're using the default setup (which installs ma1sd as an identity server). Until now, due to a regression on our side, Synapse was sending these email-ownership confirmation messages. Normally, this should be the identity server's job. I've fixed it today. Not that it solves your problem of "overriding default email templates in Synapse", but you may observe that it's no longer Synapse that will be sending these email-validation messages. |
Thanks , I ll check on it and feedback Do I have to set any vars ? |
There's a way to override ma1sd email templates. See |
if I set this value |
If you you want to override some template, you need to define a Refer to |
my current config but not working
email:
app_name: Matrix
client_base_url: https://riot.**************
enable_notifs: true
notif_for_new_users: true
notif_from: Matrix <**************>
require_transport_security: false
smtp_host: matrix-mailer
smtp_port: 8025
template_dir: /data/res/templates
#add_threepid_template_html: add_threepid.html
The text was updated successfully, but these errors were encountered: