mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 11:45:30 +00:00
better mail subject lines
This commit is contained in:
parent
81c2176cba
commit
53ca739f1f
@ -156,7 +156,7 @@ class Mailer(object):
|
|||||||
text_part = MIMEText(plain_text, "plain", "utf8")
|
text_part = MIMEText(plain_text, "plain", "utf8")
|
||||||
|
|
||||||
multipart_msg = MIMEMultipart('alternative')
|
multipart_msg = MIMEMultipart('alternative')
|
||||||
multipart_msg['Subject'] = "New Matrix Notifications"
|
multipart_msg['Subject'] = "[%s] %s" % (self.app_name, summary_text)
|
||||||
multipart_msg['From'] = self.hs.config.email_notif_from
|
multipart_msg['From'] = self.hs.config.email_notif_from
|
||||||
multipart_msg['To'] = email_address
|
multipart_msg['To'] = email_address
|
||||||
multipart_msg['Date'] = email.utils.formatdate()
|
multipart_msg['Date'] = email.utils.formatdate()
|
||||||
|
Loading…
Reference in New Issue
Block a user