Before update E-mail function.