added send mail and authorize method.