IMAP and SMTP error using Gmail (SSL Certificate)

IMPAP:
Server: imap.gmail.com
Port: 993

Using App generated password via google account.

Getting the following;
Get IMAP Mail Messages from Email: An error occurred while attempting to establish an SSL or TLS connection.

The server’s SSL certificate could not be validated for the following reasons:
• The server certificate has the following errors:
• The revocation function was unable to check revocation for the certificate.

When trying to use SMTP I use the following;

Server: smtp.google.com
Port 587 (also tried 465)

Using a separate app pass generated via my google account

The following error, same one as before;

Get IMAP Mail Messages from Email: An error occurred while attempting to establish an SSL or TLS connection.

The server’s SSL certificate could not be validated for the following reasons:
• The server certificate has the following errors:
• The revocation function was unable to check revocation for the certificate.

What I have done to troubleshoot:
Validated the server and port info via google search
Enabled POP and IMAP on my gmail account
Enabled 2-Step Verification
Generated app passwords for each use case
I’ve updated my Project Dependencies, using UiPath.Mail.Activites = 1.21.1

Less secure apps setting is no longer an option in Google settings

Is there anything I’m missing?

Try to disable your antivirus or any firewall policies and give a try
@OGunnarsson

1 Like

OMG! That’s all this was? damm YOU AVG ANTIVIRUS!

I spent 4 hours troubleshooting this, thank you @Palaniyappan

1 Like

@OGunnarsson

Try selecting starttls in the secureconnection and check

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.