Private
Public Access
1
0

adding some info to email

This commit is contained in:
Sander Roosendaal
2019-08-22 16:58:32 +02:00
parent 4eedf59953
commit 324c017f35
3 changed files with 34 additions and 1 deletions

View File

@@ -765,6 +765,11 @@ def handle_send_email_alert(
else:
debug = False
if 'othertexts' in kwargs:
othertexts = kwargs['othertexts']
else:
othertexts = None
subject = "Your rowing performance on rowsandall.com ({startdate} to {enddate})".format(
startdate = stats['startdate'],
enddate = stats['enddate'],
@@ -779,6 +784,7 @@ def handle_send_email_alert(
'siteurl':siteurl,
'rowerfirstname':rowerfirstname,
'alertname':alertname,
'othertexts':othertexts,
}
res = send_template_email(from_email,[useremail],subject,