removing google analytics and clicky
This commit is contained in:
@@ -385,6 +385,24 @@ def handle_sendemail_hard(workoutid, useremail,
|
||||
return 1
|
||||
|
||||
|
||||
# send email when user deletes account
|
||||
@app.task
|
||||
def handle_sendemail_userdeleted(name, email, debug=False, **kwargs):
|
||||
fullemail = 'roosendaalsander@gmail.com'
|
||||
subject = 'User account deleted'
|
||||
message = 'Sander,\n\n'
|
||||
message += 'The user {name} ({email}) has just deleted his account'.format(
|
||||
name=name,
|
||||
email=email
|
||||
)
|
||||
email = EmailMessage(subject,message,
|
||||
'Rowsandall <info@rowsandall.com>',
|
||||
[fullemail])
|
||||
|
||||
res = email.send()
|
||||
|
||||
return 1
|
||||
|
||||
# send email to me when an unrecognized file is uploaded
|
||||
@app.task
|
||||
def handle_sendemail_unrecognized(unrecognizedfile, useremail,
|
||||
|
||||
Reference in New Issue
Block a user