mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:06:07 -04:00
Send mail notifs with a plaintext part too
This commit is contained in:
parent
b2c04da8dc
commit
40d40e470d
5 changed files with 50 additions and 7 deletions
|
@ -38,6 +38,7 @@ class EmailConfig(Config):
|
|||
"notif_from",
|
||||
"template_dir",
|
||||
"notif_template_html",
|
||||
"notif_template_text",
|
||||
]
|
||||
|
||||
missing = []
|
||||
|
@ -61,6 +62,7 @@ class EmailConfig(Config):
|
|||
self.email_notif_from = email_config["notif_from"]
|
||||
self.email_template_dir = email_config["template_dir"]
|
||||
self.email_notif_template_html = email_config["notif_template_html"]
|
||||
self.email_notif_template_text = email_config["notif_template_text"]
|
||||
|
||||
# make sure it's valid
|
||||
parsed = email.utils.parseaddr(self.email_notif_from)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue