Mail sender

Implementation of email sending functionality. Unit tests.