owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.39k stars 182 forks source link

E-Mail-Notification Templates - Received mails are blank. #10406

Open 2xDIYGN opened 3 days ago

2xDIYGN commented 3 days ago

Describe the bug

A clear and concise description of what the bug is.

When receiving a E-Mail notifiation while branding is enabled with a custom mail-template the standard message body is blank.

Steps to reproduce

  1. Deploy ocis 5.0.7 with Helm
  2. Enable e-mail Notifications branding and add configrefs containing Mail-Template in the values.yaml
  3. Send a test mail by adding a user to a space

Expected behavior

A clear and concise description of what you expected to happen.

E-Mail notifications should contain the standard message body when using a custom template. If the branding is disabled the standard message body is being correctly send.

Actual behavior

A clear and concise description of what happened.

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files. ocis 5.0.7 deployed with HELM

This is how the received mail looks like: Screenshot 2024-10-22 143957

And this is the source html of the received mail: Screenshot 2024-10-22 144730

Following email.text.tmpl and email.html.tmpl were used in configmaps: Screenshot 2024-10-22 1420 Screenshot 2024-10-22 144604

```console OCIS_XXX=somevalue OCIS_YYY=somevalue PROXY_XXX=somevalue ```

Additional context

Add any other context about the problem here.

fschade commented 2 days ago

Thanks for the Report, can you please Share the config and Template as gist?

2xDIYGN commented 2 days ago

Hello, here is the link: https://gist.github.com/2xDIYGN/d2d8036c41dce4d060779c02127356bf