Buffering-SMTP-Handler Buffering SMTP Handler to send logs in python Copy everything from example.py to your python file Handler can be written in a seperate file but should be imported to the main file