disable the mail function