diff --git a/resend_borg_error.py b/resend_borg_error.py new file mode 100755 index 0000000..30a3b36 --- /dev/null +++ b/resend_borg_error.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 + +import os +import resend + +resend.api_key = os.environ["RESEND_API_KEY"] + +params: resend.Emails.SendParams = { + "from": "Borgmatic ", + "to": ["hyperreal@fedoraproject.org"], + "subject": "Error running Borgmatic", + "html": "There was an error running your Borgmatic backup. Please investigate.", +} + +email = resend.Emails.send(params) +print(email)