Allow adding custom HTML or Markdown to verification emails
For compliance with data protection laws in certain situations, it can be necessary to have the full privacy statement of the service as a part of the registration email.
It's already possible to pass a custom body in the verification email using the "Verification email instructions" setting, but that is only made for small strings without any formatting.
Since privacy statements can be quite long, it would be great to be able to use proper formatting for that and pass some HTML to add to the email. Maybe the "Verification email instructions" field could be changed to allow HTML, or maybe a separate field for a custom footer could be added?
Would this be in scope for the app? If yes, I'd be happy to work on a patch for this.
Allowing HTML is issue prone (and is tricky right now until https://github.com/nextcloud/server/pull/38093 is in), would markdown support be enough?
(in the meantime you can use the following app to make sure people are aware of your ToS and Privacy Notice : https://apps.nextcloud.com/apps/terms_of_service )
Thanks, https://github.com/nextcloud/server/pull/38093 looks quite interesting, and I definitely see why it's tricky, especially when the HTML comes directly from the user (then again in this case it comes from the admin, so one could argue in this case it doesn't necessarily need sanitizing).
Markdown would work if the resulting text would be left- or right-aligned instead of centered. On the one hand using markdown feels a bit weird given that we're on the web and we're putting together a HTML email here, but on the other hand it would make a ton of sense for generating plaintext emails (could just use the markdown-text directly) and also to support custom style templates for emails. So yeah, on first thought markdown sounds like a more sensible approach to me.
We would also like to see an HTML or Markdown option. Is this already implemented and I am overlooking it or what are the plans here?
Merci :)