Getting Error when dealing with IMAP Get Mail Message

Hi, When I am Doing Email automation, I am getting an error like this. I Used IMAP Get Mail Message activity with following properties.

Port : 993
Server : imap.gmail.com
Secure Connection : Auto

RemoteException wrapping MailKit.Security.SslHandshakeException: 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.

How to correct this Issue? I tried with port No 143, 465, 587 by changing Secure connection as per requirements.

1 Like

Hey @meghamenonk737

This looks like a certificate issue.

Kindly try once with Secure Connection as None.

Thanks
#nK

1 Like

@meghamenonk737

Try with Secure Connection → None

Hope this may help you

Thanks

I tried with Secure Connection → None. In that time getting another error like “The IMAP server has unexpectedly disconnected. Exception Type: MailKit.Net.Imap.ImapProtocolException”

1 Like

@meghamenonk737

Check below post for your reference

Hope this may help you

Thanks

Already did the changes as per this Forum. It doesn’t work for me. Even tried with disabling antivirus. No result

@meghamenonk737

Try checking below for your reference

Reference

Hope this may help you

Thanks

Firstly Check whether you have given Third Party Access to Uipath through your mail id after providing access try again creating the same workflow.
Also make sure Less Secure Apps in On in your gmail account.
Thank You

image

Try with different ports please, if not you need to install the certificate…