Added email functionality using google smtp.