Add email sending functional.
Merge branch 'master' into gh-pages
Fix email sending.