Refactored. Use docopt and Jinja2 to send HTML emails