make your account less secure.
What port did you tell the activity to use?
Kindly try with port number 993 or 143
Either of this will let this work
@UiUser - You must use Application Password for this to work in UI Path with GMail. GMail doesn’t allow Insecure Apps to connect.