report: rewrite email sending to make it versatile, and could send from gmail