Added functionality to send e-mail