The Flask-Mail extension provides a simple interface to set up SMTP with your Flask application and to send messages from your views and scripts.
This is a basic template which demonstrates the usage of flask-mail library.
git clone...
cd flask-Mail
virtualenv env
source env/bin/activate
(env)$ pip install -r requirements.txt
python app.py
curl http://localhost:5000/send-mail