{% extends "base.html" %} {% block title %}Email Site Report — {{ branding.site_name }}{% endblock %} {% block content %}

Email Site Report

Send a PDF inventory report for one site to any email address.

{% if not email_configured %}

Gmail setup required

Add these lines to your .env file, then restart Django:

EMAIL_HOST_USER=yourname@gmail.com
EMAIL_HOST_PASSWORD=your-16-char-app-password
DEFAULT_FROM_EMAIL=yourname@gmail.com

Gmail requires an App Password (not your normal Gmail password). Enable 2-Step Verification, then create one at Google App Passwords.

{% endif %}
{% if site_names %}
{% csrf_token %} {{ form.site_name }} {% if form.site_name.help_text %}

{{ form.site_name.help_text }}

{% endif %} {% if form.site_name.errors %}

{{ form.site_name.errors.0 }}

{% endif %} {{ form.recipient }} {% if form.recipient.help_text %}

{{ form.recipient.help_text }}

{% endif %} {% if form.recipient.errors %}

{{ form.recipient.errors.0 }}

{% endif %}
Cancel
{% else %}

No assets with a site name yet. Create assets and assign a site first.

+ New Asset

{% endif %}
{% endblock %}