<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>
Connecting to Gmail
Configure Email Connector to connect to your Gmail account.
Configure an App Password in Your Gmail Account
To send emails to a Gmail account via the Email Connector, configure an app password in your Gmail account.
Use the app password instead of your regular Gmail email password, which enables you to use email protected by MFA (Multi-Factor Authentication).
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
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:
-
There is no need for you to enable Less Secure Apps.
-
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:
-
Enable Less Secure Apps.
-
If using your normal password does not work, go to Allow Access to Your Google Account and:
-
Enter your username and password.
-
Enter the letters on the captcha screen.
-
Return to your Mule app and run the flow again.
-