adding some info to email
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user