sending mail function had removed