Configure "settings.ini" with SMTP details and you are good to go. Refer to "demo.py" file for usage

Forked and added code to send an email on a motion detector triggering a GPIO pin. Now working on adding code to snap a pic and save/send the image.