Add resend_borg_error.py

This commit is contained in:
Jeffrey Serio 2024-09-07 15:39:46 -05:00
parent 5603e42817
commit 7bb0f1f6bb

16
resend_borg_error.py Executable file
View File

@ -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 <onboarding@resend.dev>",
"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)