extend schema
Add tests for mailer
Implement mailer