Emails To logic