Mail app is not working on my Mac I receive emails but I get account error and cannot send.

Any idea what can be the problem?
The mail connection doctor window is the best way to diagnose any mail send failure, setup failure and other errors in configuration or connectivity for getting all the logs, red/orange/green status lights and other diagnostic and guided repair tips. 


Mac Mail - Account already exists error when adding gmail