Private
Public Access
1
0

fine tuning the sending of email notifications

This commit is contained in:
Sander Roosendaal
2022-12-17 17:08:25 +01:00
parent a7a33d0d17
commit 238856a224
2 changed files with 10 additions and 7 deletions

View File

@@ -1713,19 +1713,21 @@ def handle_sendemail_expired(useremail, userfirstname, userlastname, expireddate
return 1
@app.task
def handle_sendemail_newftp(power,rower,mode, **kwargs):
def handle_sendemail_newftp(rower,power,mode, **kwargs):
subject = "You may want to update your FTP on rowsandall.com"
from_email = 'Rowsandall <info@rowsandall.com>'
power = int(power)
d = {
'first_name': rower.user.first_name,
'last_name': rower.user.last_name,
'siteurl': siteurl,
'ftp': r.ftp,
'ftp': rower.ftp,
'newftp': power,
}
_ = send_template_email(from_email, [r.user.email],
_ = send_template_email(from_email, [rower.user.email],
subject, 'newftpemail.html',
d, **kwargs)