{{ mail.subject }}
From: {{ mail.from.text }} at {{ mail.date| date }}
{% if mail.html %}
{# TODO:
Find a better solution for this monstrocity.
Replaces clean html tag with styled one for readabbility.
Realistically, the entire iFrame or even website itself might be vulnerable.
srcdoc='html' seems like a very, very unsafe method to me, unfortunately I havent found a better solution.
#}
{% elseif mail.textAsHtml %}
{{ mail.textAsHtml|raw }}
{% else %}
{% endif %}
{% if mail.attachments %}
Download your attachments: (SoonTM)
{% for attachment in mail.attachments %}
📎 {{ attachment.filename }}
{#
Add actual button to download each file, inline.
Or even better. just an a href with filename.
very basic, like regular links look. maybe a paperclip icon
#}
{% endfor %}