#OTC-193
- Catched potetntial Exception on sending mails.
- Added returning of boolean to indicate success/failure for sending mail.
Reformated code.