Added ability to send emails with SMTP