Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Sends email notifications when target websites are not available.

Notifications You must be signed in to change notification settings

lfir/email-error-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mail_error_notifs.py

Script that can be used as a scheduled task to send email notifications when certain websites aren't available.

Emails are sent using Sendgrid's service.

Additional files used not in VCS:

  • .env

Specific or sensitive information is read from this file, such as Sendgrid's API key and the URL of target websites.

  • mail_error_notifs.log

Where exceptions that occur during the execution of the script are logged to. The directory where the file should be stored is read from the environment variable LOGDIR, that can be set in the first file.