Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-11-09 19:14:00 +01:00
parent 96a4b2ba10
commit 919e7f331b
4 changed files with 48 additions and 1 deletions

View File

@@ -1341,6 +1341,33 @@ def handle_send_email_transaction(
return 1
@app.task
def handle_send_email_transaction_notification(
username, useremail, amount, additional_text, **kwargs):
if 'debug' in kwargs: # pragma: no cover
debug = kwargs['debug']
else:
debug = True
subject = "Rowsandall Payment Confirmation"
from_email = 'Rowsandall <admin@rowsandall.com>'
d = {
'name': username,
'siteurl': siteurl,
'amount': amount,
'reason':additional_text,
}
res = send_template_email(from_email,['support@rowsandall.com'],
subject,
'instantplansold.html',
d, **kwargs)
return 1
@app.task
def handle_send_email_failed_cancel(
name, email, username, id, **kwargs):