Skip to main content
Skip table of contents

Gmail with OAuth2 setup

It is first needed to set up Gmail with OAuth2 in Google Cloud Platform, and then configure it in MyQ.

Gmail with OAuth2 setup in Google Cloud Platform

  1. Log in to Google Cloud Platform and click on Select a project to create a new project.

    Create new project
  2. Add Project name, optionally add a location, and click Create.

    New project options
  3. On the left-side menu, hover over APIs & Services and click on Enabled APIs & services.

    Navigating to enabled APIs and services
  4. Click on +ENABLE APIS AND SERVICES to add the Gmail API to your project.

    Enabling a new API
  5. Type Gmail in the search field and click on the Gmail API result.

    Searching for the Gmail API
  6. Click Enable under the Gmail API.

    Enabling the Gmail API
  7. Once enabled, you are prompted to create credentials in order to use the Gmail API. Click on Create Credentials to proceed.

    Gmail API create credentials prompt
  8. In the create credentials window, in the Credential Type section, choose Gmail API in the Select an API field, choose User data, and click Next.

  9. In the Scopes section, click Add or Remove Scopes. In the Update selected scopes windows, type Gmail API in the search field, select the Gmail API …/auth/gmail.modify scope and click Update.

  10. In the OAuth Client ID section, select Web application in the Application type field, and add a Name for your OAuth2 client.

  11. In the Authorized redirect URls field, click Add URI and type https://helper.myq.cz/ . This step is mandatory for the authorization code to work.

    Add authorized redirect URI
  12. In the OAuth consent screen section, click Add Users and add the users' email addresses used for sending emails and/or receiving print jobs via email.

  13. Once done with all the sections, click Create.

  14. Navigate to APIs & Services, Credentials, to view your Client ID and Client secret that are needed for the setup in MyQ.

Gmail setup in MyQ

  1. Once you are finished in Google Cloud Platform, log in to the MyQ web administrator interface, and go to MyQ, Settings, External Systems.

  2. In the External Systems section, click +Add and select Gmail.

  3. In the pop-up window, fill in the required fields, and click OK:

    1. Title - Add a title for your Gmail external system.

    2. Client ID - Add the Client ID from the Google Cloud Platform credentials.

    3. Security key - Add the Client secret from the Google Cloud Platform credentials.

  4. After setting up the external system in MyQ, you are requested to authorize the connection by going to the provided URL, copying the generated code, pasting it in the Authorization code field, and clicking OK.

Gmail is now connected to MyQ and is ready to be used in the Network settings tab as an Outgoing SMTP server, and in the Jobs settings tab, in Jobs via Email as a POP3 or IMAP server.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.