Work on the mail tests a bit

* no http/file io in the tests
* fix html in text email part bug
* add proper tests for user daily mailer