You can fail to add Yahoo, Google or some other email accounts to the Mail app if the app is outdated. Basically, if your app is not updated to the latest version it can create incompatibility problems. Hence, updating the Windows Mail app to the latest version can solve the problem.
Follow these steps:
1- Press the ‘Windows key’ and search for ‘Mail’.
2-From the results, locate ‘Mail’ and right-click on it, and hit on ‘Share’.
3- The ‘Microsoft Store’ will now open with the ‘Mail app’ page. You can check if an update for the application is available here. If there are updates available, click on the ‘Update’ button.