Added support for sending email