You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just received an email to confirm my mail address. It contained HTML in the plain text part:
<p>
bitte bestätigen Sie Ihre E-Mail-Adresse um Ihr Konto auf mein.berlin.de freizuschalten.
</p>
<p>
Nach der Bestätigung können Sie Ideen und Kommentare anlegen und bewerten und an Umfragen teilnehmen.
</p>
<p>
Bei Fragen können Sie sich an support@mein.berlin.de wenden.
</p>
I tried to dig into the code to see why this happens. It seems like most email templates overwrite {% block content %} which is used in both email_base.html and email_base.txt. The proper solution is probably to only use plain text inside {% block content %}, and additionally also overwrite {% block content_html %} if HTML is desired.
The text was updated successfully, but these errors were encountered:
I just received an email to confirm my mail address. It contained HTML in the plain text part:
I tried to dig into the code to see why this happens. It seems like most email templates overwrite
{% block content %}
which is used in bothemail_base.html
andemail_base.txt
. The proper solution is probably to only use plain text inside{% block content %}
, and additionally also overwrite{% block content_html %}
if HTML is desired.The text was updated successfully, but these errors were encountered: