Typically, after using the Mail setup assistant, one can receive emails but cannot SEND them out. Quite often, an alert will pop up saying that the password entered was incorrect -- even though you KNOW it's the right password.
I believe the error may not be localized to Mail.app itself, but may actually have something to do with the way the Mail setup assistant works, or also how the password "key" is created in the user's keychain.
...
Here's what to do to fix the problem:
- Open the Keychain Access application in the Utilties folder.
- Unlock your keychain by clicking on the lock icon in the lower left
- Locate the "passwords" that are stored in the keychain, and DELETE ALL that are related to the Mail.app (should be indicated by "POP" and "SMTP").
- Quit Keychain Access
- Now, re-launch Mail
- Create a new "test email" to yourself
- When you click send, the SMTP server will request a password, which will invoke the dialog asking for the password and if you wish for it to be stored in your keychain. Enter the password and CHECK the box to store the password.
- Does it send succesfully, without an error?
- If so, now choose the "get mail" option to receive the email to yourself.
- Again, since there is no stored password, you will again be prompted to enter a password for the "POP" server. Enter it and again check to store it in your keychain.
This got things working properly for me again.