function of sending mail and forgot password feature