added send mail function