monitoring ftp
This commit is contained in:
@@ -1712,6 +1712,24 @@ def handle_sendemail_expired(useremail, userfirstname, userlastname, expireddate
|
||||
d, cc=['support@rowsandall.com'], **kwargs)
|
||||
return 1
|
||||
|
||||
@app.task
|
||||
def handle_sendemail_newftp(power,rower,mode, **kwargs):
|
||||
subject = "You may want to update your FTP on rowsandall.com"
|
||||
from_email = 'Rowsandall <info@rowsandall.com>'
|
||||
|
||||
d = {
|
||||
'first_name': rower.user.first_name,
|
||||
'last_name': rower.user.last_name,
|
||||
'siteurl': siteurl,
|
||||
'ftp': r.ftp,
|
||||
'newftp': power,
|
||||
}
|
||||
|
||||
_ = send_template_email(from_email, [r.user.email],
|
||||
subject, 'newftpemail.html',
|
||||
d, **kwargs)
|
||||
|
||||
return 1
|
||||
|
||||
@app.task
|
||||
def handle_sendemail_breakthrough(workoutid, useremail,
|
||||
|
||||
Reference in New Issue
Block a user