when is it ok to resign by email