Send error mails to admin only
This commit is contained in:
parent
3b26b94fd3
commit
3c215638f5
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ def handle_error(error_msg, error_body):
|
||||||
email_to_admin_data = {
|
email_to_admin_data = {
|
||||||
'subject': error_msg,
|
'subject': error_msg,
|
||||||
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
|
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
|
||||||
'to': settings.WEBHOOK_EMAIL_TO.split(","),
|
'to': [settings.ADMIN_EMAIL],
|
||||||
'body': error_body,
|
'body': error_body,
|
||||||
}
|
}
|
||||||
send_plain_email_task.delay(email_to_admin_data)
|
send_plain_email_task.delay(email_to_admin_data)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue