Skip to content

Allow adding custom HTML or Markdown to verification emails #582

Open

Description

@jonas2515

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.

Activity

  1. changed the title [-]Allow adding a custom HTML body to registration emails[/-] [+]Allow adding custom HTML to verification emails[/+] on Oct 16, 2023
  2. tcitworld commented on Oct 19, 2023

    @tcitworld
    Member

    Allowing HTML is issue prone (and is tricky right now until nextcloud/server#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 )

  3. jonas2515 commented on Oct 19, 2023

    @jonas2515
    Author

    Thanks, nextcloud/server#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.

  4. NeverLoseHope777 commented on Mar 20, 2024

    @NeverLoseHope777

    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 :)

  5. bentuna commented on Jul 24, 2025

    @bentuna

    Markdown support would be a great help!

  6. changed the title [-]Allow adding custom HTML to verification emails[/-] [+]Allow adding custom HTML or Markdown to verification emails[/+] on Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions