Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions offsite_backups/offsite_backups/offsite_backup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -24,8 +24,8 @@ def send_email(success, service_name, doctype, email_field, error_status=None):
subject = "Backup Upload Successful"
message = """
<h3>Backup Uploaded Successfully!</h3>
<p>Hi there, this is just to inform you that your backup was successfully uploaded to your {} bucket. So relax!</p>""".format(
service_name
<p>Hi there, this is just to inform you that the backup of your site {} was successfully uploaded to your {} bucket. So relax!</p>""".format(
get_host_name(), service_name
)
else:
subject = "[Warning] Backup Upload Failed"
Expand Down
Loading