HTML emails are sent as text/plain #549

Closed
opened 2025-11-02 03:27:48 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @cez81 on GitHub (Mar 20, 2017).

  • Gitea version (or commit ref): 1.1.0+61-g888dee3b
  • Git version: N/A
  • Operating system: N/A
  • Database (use [x]): N/A
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Email templates are html but emails are sent as text/plain unless ENABLE_HTML_ALTERNATIVE = true

Screenshots

email

Originally created by @cez81 on GitHub (Mar 20, 2017). - Gitea version (or commit ref): 1.1.0+61-g888dee3b - Git version: N/A - Operating system: N/A - Database (use `[x]`): N/A - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description Email templates are html but emails are sent as text/plain unless ENABLE_HTML_ALTERNATIVE = true ## Screenshots ![email](https://cloud.githubusercontent.com/assets/9416498/24110563/0d5a6dd2-0d94-11e7-92ed-5ff9bf152180.png)
GiteaMirror added the type/enhancement label 2025-11-02 03:27:48 -06:00
Author
Owner

@strk commented on GitHub (Mar 20, 2017):

So what ? That's intentional
If you really want your users to suffer more, then
you can enable HTML mails ...

@strk commented on GitHub (Mar 20, 2017): So what ? That's intentional If you really want your users to suffer more, then you can enable HTML mails ...
Author
Owner

@cez81 commented on GitHub (Mar 20, 2017):

Ok fair enough. I don't really care as I'm the only user. Just seems a bit odd to have html templates and then have the default setting to send as plain text.

@cez81 commented on GitHub (Mar 20, 2017): Ok fair enough. I don't really care as I'm the only user. Just seems a bit odd to have html templates and then have the default setting to send as plain text.
Author
Owner

@strk commented on GitHub (Mar 20, 2017):

Yeah, that's bad, and doesn't even work very nicely.
The problem has been we didn't want to invalidate existing
custom templates. Nowadays it could be a moot point as templates
changed a lot.

@strk commented on GitHub (Mar 20, 2017): Yeah, that's bad, and doesn't even work very nicely. The problem has been we didn't want to invalidate existing custom templates. Nowadays it could be a moot point as templates changed a lot.
Author
Owner

@tboerger commented on GitHub (Mar 20, 2017):

IMHO it should be sent as multipart by default. Most users like nicer emails :)

@tboerger commented on GitHub (Mar 20, 2017): IMHO it should be sent as multipart by default. Most users like nicer emails :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#549