There are several steps involved to activate Gmail for Sam9000. This is for extra security reasons.
Requirements: you need to have 2 factor authentication active on your gmail account.
this is the background information from google: https://support.google.com/accounts/answer/185833
First, you should configure Gmail to work with Sam9000. You need to active IMAP support.
Alternative you are trying to connect to a office365 outlook account.
Step 1: Check that IMAP is turned on
Step 2: Activate Password Apps in your google account.
Step 3: Edit Settings in Sam9000 - APM
Then Use the following values :
Once all setup, change the status of the email account by clicking the Activate Button.
If all your parameters are correct, the account should go green and say ON.