diff --git a/offsite_backups/offsite_backups/offsite_backup_utils.py b/offsite_backups/offsite_backups/offsite_backup_utils.py index f16eabe..66bd5a2 100644 --- a/offsite_backups/offsite_backups/offsite_backup_utils.py +++ b/offsite_backups/offsite_backups/offsite_backup_utils.py @@ -5,7 +5,7 @@ import os import frappe -from frappe.utils import cint, split_emails +from frappe.utils import cint, get_host_name, split_emails def send_email(success, service_name, doctype, email_field, error_status=None): @@ -24,8 +24,8 @@ def send_email(success, service_name, doctype, email_field, error_status=None): subject = "Backup Upload Successful" message = """

Backup Uploaded Successfully!

-

Hi there, this is just to inform you that your backup was successfully uploaded to your {} bucket. So relax!

""".format( - service_name +

Hi there, this is just to inform you that the backup of your site {} was successfully uploaded to your {} bucket. So relax!

""".format( + get_host_name(), service_name ) else: subject = "[Warning] Backup Upload Failed"