Contact Free trial Login

Connecting to Gmail

Configure Email Connector to connect to your Gmail account.

Enable Less Secure Apps

Google might block third-party mail clients if you do not enable the Less Secure Apps setting for your Gmail account, as Google blocks any apps that are not using security protocols that Google deems mandatory unless you allow less secure apps to access your Gmail account.

When you try to connect to your Gmail for the first time, you will receive an email with a link for enabling less secure apps in your Gmail account.

Email notification from Google about the blocked sign-in attempt

IMAP Configuration

Configure the following required parameters:

  • Gmail IMAP Connection: IMAPS Connetion

  • Gmail IMAP server address: imap.gmail.com

  • Gmail username: Your full Gmail address (for example, `user@gmail.com`).

  • Gmail password: Your Gmail password.

  • Gmail IMAP port (SSL): 993

  • TLS Configuration: Check insecure

<email:imap-config name="gmail">
  <email:imaps-connection host="imap.gmail.com"
    port="993" user="user@gmail.com"
    password="mypassword">
    <tls:context>
        <tls:trust-store insecure="true"/>
    </tls:context>
  </email:imaps-connection>
</email:imap-config>

POP3 Configuration

Configure the following required parameters:

  • Gmail POP3 Connection: POP3S Connetion

  • Gmail POP server address: pop.gmail.com

  • Gmail username: Your full Gmail address (for example, `user@gmail.com`).

  • Gmail password: Your Gmail password.

  • Gmail POP port (SSL): 995

  • TLS Configuration: Check insecure

<email:pop3-config name="gmail">
    <email:pop3s-connection host="pop.gmail.com"
      port="995"  user="user@gmail.com"
      password="mypassword">
        <tls:context>
            <tls:trust-store insecure="true"/>
        </tls:context>
    </email:pop3s-connection>
</email:pop3-config>

SMTP Configuration

Configure the following required parameters:

  • Gmail SMTP Connection: SMTPS Connetion

  • Gmail SMTP server address: smtp.gmail.com

  • Gmail username: Your full Gmail address (for example, `user@gmail.com`).

  • Gmail password: Your Gmail password.

  • Gmail SMTP port (SSL): 465

  • TLS Configuration: Check insecure

<email:smtp-config name="smtp-gmail" from="sender@gmail.com">
    <email:smtps-connection host="smtp.gmail.com"
      port="465" password="mypassword"
      user="user@gmail.com">
        <tls:context enabledProtocols="TLSv1.2,SSLv3">
            <tls:trust-store insecure="true"/>
        </tls:context>
    </email:smtps-connection>
</email:smtp-config>

Troubleshoot SMTPS Connection Issues

The way you troubleshoot SMTPS connection issues depends on whether or not you have two-factor authentication set up for your Gmail account.

If you have two-factor authentication set up:

  1. There is no need for you to enable Less Secure Apps.

  2. Generate an app-specific password and use that instead of your normal password.
    See Sign in Using App Password for details.

If you do not have two-factor authentication set up:

  1. Enable Less Secure Apps.

  2. If using your normal password does not work, go to Allow Access to Your Google Account and:

    1. Enter your username and password.

    2. Enter the letters on the captcha screen.

    3. Return to your Mule app and run the flow again.