signebedi / libreforms-fastapi

FastAPI implementation of the libreForms spec
GNU Affero General Public License v3.0
1 stars 1 forks source link

[smtp] add option to send html emails #328

Closed signebedi closed 4 months ago

signebedi commented 4 months ago

When we send custom jinja2 emails, it may sometimes make sense to allow emails. We should of course always default to plaintext. Adding html is, in theory, as simple as running

                msg.attach(MIMEText(content, 'html'))
signebedi commented 4 months ago

This is now the default behavior. There may be some difficulties, so we'll test the email config, which now default to HTML. Existing instances will need to update their email configurations. This issue is related to #284.