change mail received logic