mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
Add resend_borg_error.py
This commit is contained in:
parent
5603e42817
commit
7bb0f1f6bb
16
resend_borg_error.py
Executable file
16
resend_borg_error.py
Executable 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)
|
Loading…
Reference in New Issue
Block a user