In the right pane, enter a new password in the Password box. Be sure the box to Automatically detect and maintain account settings is not checked Enter your desired outgoing mail port. Skip to main content Frequently Asked Questions (FAQ) The following frequently asked questions are covered within this resource. If you have set up your account as, just leave it as it is. Do the same for the Outgoing Server (SMTP). Enter your Google Mail address () and click Next. Step 1: Launch System Preferences - On your Mac, go ahead and open System Preferences. And for you to do this, here is what you need to do. You can try this Sample code: List u = new List () List ids = new List () String test = 'test' u = Database.Query ('SELECT Id, Name FROM User WHERE Name =: test') System. In the left pane, click the account in which you want to change the password. To fix that set Authentication type to 'OAuth2' in your Gmail account settings for the IMAP server settings. So once that you were not able to verify your account name or even your password when you are using the Mail app on your Mac, you can simply try to enter your password using the System Preferences of your Mac.