Added https support
Added SMTP support