Added mail service. This commit is untested. Fixes are likely.