Full tutorial can be found here:
This code shows how to send an email alert every time an unhandled exception occurs.
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
Create a .env
file in project directory with the following:
SENDGRID_API_KEY=yourkey
FROM_EMAIL=youremail
TO_EMAIL=youremail
(venv) $ flask run
Visit localhost:5000/
- Flask - The web framework used
- Twilio Sendgrid - Email Service
This project is licensed under the MIT License - see the LICENSE file for details