This error is caused by an incorrect username or password.
To change your username and / or password in Mail, take the following steps:
- Click on the Mail menu at the top left of the screen and select Preferences
- When the Preferences window appears, ensure the Accounts tab is selected.