feat: Implement mailer service for sending emails

This commit is contained in:
Ginger
2026-03-19 11:13:42 -04:00
committed by Ellis Git
parent aa79072411
commit bb7fd9efc1
15 changed files with 378 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
{%- block content %}{% endblock %}
Message sent by Continuwuity {{ env!("CARGO_PKG_VERSION") }}. 🐈
@@ -0,0 +1,10 @@
{% extends "_base.txt.j2" %}
{% block content -%}
Hello!
Somebody, probably you, tried to associate this email address with the Matrix account {{ user_id }}.
If that's your account, and this is your email address, click this link to proceed:
{{ verification_link }}
Otherwise, you can ignore this email. The above link will expire in one hour.
{%- endblock %}
@@ -0,0 +1,10 @@
{% extends "_base.txt.j2" %}
{% block content -%}
Hello!
Somebody, probably you, tried to create a Matrix account on {{ server_name }} using this email address.
Use the link below to proceed with creating your account:
{{ verification_link }}
If you are not trying to create an account, you can ignore this email. The above link will expire in one hour.
{%- endblock %}
@@ -0,0 +1,10 @@
{% extends "_base.txt.j2" %}
{% block content -%}
Hello {{ display_name }} ({{ user_id }}),
Somebody, probably you, tried to reset your Matrix account's password.
If you requested for your password to be reset, click this link to proceed:
{{ verification_link }}
Otherwise, you can ignore this email. The above link will expire in one hour.
{%- endblock %}
+5
View File
@@ -0,0 +1,5 @@
{% extends "_base.txt.j2" %}
{% block content -%}
If you're seeing this, SMTP is configured correctly. :3
{%- endblock %}