There are a few reasons why the 2FA email code is not received by email.
Check the email address
Verify that the correct email address is configured in the user profile settings. Click Reset Email and add the correct email address for that user profile.
No SMTP Email Solution
Ensure your WordPress site can reliably send emails. Install and configure a plugin like Easy WP SMTP to improve email delivery. Test email functionality after setup.
Junk Email Folder
Check the spam/junk folder in your email inbox. If the email SMTP plugin was not configured correctly, the emails will be sent to spam/junk folder.
Email delay issue
Use a reliable SMTP service to ensure faster email delivery. Avoid using shared hosting email servers, as they may experience delays.