update receive email logic