{% extends "base.html" %} {% block title %}Mail configuration{% endblock %} {% block content %}

SMTP configuration

External mail server used to dispatch alert reminders. Edits take effect immediately.

Server settings

{{ form.csrf_token }}
{{ form.smtp_host.label }}{{ form.smtp_host(placeholder="smtp.example.com") }} {% for err in form.smtp_host.errors %}
{{ err }}
{% endfor %}
{{ form.smtp_port.label }}{{ form.smtp_port() }} {% for err in form.smtp_port.errors %}
{{ err }}
{% endfor %}
{{ form.smtp_encryption.label }}{{ form.smtp_encryption() }}
587 → STARTTLS · 465 → SSL/TLS · 25 → none
{{ form.smtp_username.label }}{{ form.smtp_username(autocomplete="off") }}
{{ form.smtp_password.label }}{{ form.smtp_password(autocomplete="new-password") }}
Leave blank to keep the current password.
{{ form.smtp_from_address.label }}{{ form.smtp_from_address() }}
{{ form.smtp_from_name.label }}{{ form.smtp_from_name() }}
{{ form.submit(class_="btn btn-primary") }}

Send test email

Confirms credentials, port, and encryption are correct.

{{ test_form.csrf_token }}
{{ test_form.test_recipient.label }}{{ test_form.test_recipient(placeholder="you@example.com") }}
{{ test_form.submit(class_="btn btn-ghost btn-block") }}
{% endblock %}