Add receiving email and tests for it