added ability to send mails