{% extends "base.html" %} {% block title %}View Full Message - Email Log{% endblock %} {% block content %}

Full Message Content

From: {{ log.mail_from }}
To: {{ log.to_address }}
CC: {{ log.cc_addresses or 'None' }}
BCC: {{ log.bcc_addresses or 'None' }}
Subject: {{ log.subject or 'N/A' }}
Date: {{ log.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% if log.attachments %}
Attachments:
    {% for attachment in log.attachments %}
  • {{ attachment.filename }} ({{ attachment.size|filesizeformat }})
    {% set content_type = attachment.content_type.lower() if attachment.content_type else 'application/octet-stream' %} {% set extension = attachment.filename.split('.')[-1].lower() if '.' in attachment.filename else '' %} {% set is_image = content_type.startswith('image/') or extension in ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg'] %} {% set is_text = content_type.startswith('text/') or extension in ['txt', 'log', 'json', 'xml', 'csv', 'md'] %} {% set is_pdf = content_type == 'application/pdf' or extension == 'pdf' %} {% set is_html = content_type in ['text/html', 'application/xhtml+xml'] or extension in ['html', 'htm'] %} {% if is_image or is_text or is_pdf or is_html %} {% if is_image %} View Image {% elif is_pdf %} View PDF {% elif extension == 'csv' %} View CSV {% elif is_text %} View Text {% elif is_html %} View HTML {% else %}View in Browser {% endif %} {% endif %} Download
  • {% endfor %}
{% endif %}
Message Content:
{{ log.message_body }}
Message Headers:
{{ log.email_headers }}
Back to Logs
{% endblock %}