Added sendGmail() option and added protocol to sendEmail()