WIP do not merge

This has the template order reversed (`text_template` comes before `html_template` in `send_mail`). Perhaps they should be passed as a keyword argument instead?