Apple doesn’t send verification codes for two-factor authentication to email. You can either receive a code on one of your trusted devices, or through a text or phone call. To set up your trusted devices/phone numbers on Mac, go to System Preferences > Apple ID > Password & Security.