Email Account Connectivity Issue

I am using Pega Personal Edition v8.7. I tried to configure email account with Gmail but the connection is failure even though the credentials are valid. I tried only STMP configuration and below are the error details in the application. No error captured in pega logs.

## Sender## Overall resultStatus

Fail:Configuration

Message

Disconnect not attempted.

Steps performed

Step

Result

Establish session for email server

Success

Obtain transport object

Fail

Connect to email server

Not attempted

Disconnect

Not attempted

## Components tested

Description

Value

Port

587

Email_Address

[email protected]

Email_Server

smtp.gmail.com

Protocol

SMTP

User_ID

[email protected]

## Debugging informationDate and time

8/23/22 4:58 PM

Details

DEBUG: setDebug: JavaMail version 1.5.5
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host “smtp.gmail.com”, port 587, isSSL false
220 smtp.gmail.com ESMTP a7-20020a170902ecc700b0016bef6f6903sm2420387plh.72 - gsmtp
DEBUG SMTP: connected to host “smtp.gmail.com”, port: 587

EHLO DESKTOP-NQ3MPFH
250-smtp.gmail.com at your service, [117.195.116.255]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250 SMTPUTF8
DEBUG SMTP: Found extension “SIZE”, arg “35882577”
DEBUG SMTP: Found extension “8BITMIME”, arg “”
DEBUG SMTP: Found extension “STARTTLS”, arg “”
DEBUG SMTP: Found extension “ENHANCEDSTATUSCODES”, arg “”
DEBUG SMTP: Found extension “PIPELINING”, arg “”
DEBUG SMTP: Found extension “SMTPUTF8”, arg “”
STARTTLS
220 2.0.0 Ready to start TLS

Hi @SubhashK7107,

Did you enable account access for less secure apps ? if not please enable using below article and try.

https://support.google.com/accounts/answer/6010255?hl=en

Thanks,
Vinay

@SubhashK7107 Please perform the following steps

  1. Please enable less secure app

  2. Enable two factor authentication

  3. Set the App password

  4. Use app password in the PEGA Email Account configuration

Check property under SysAdmin\Dynamic System Settings that needs to be setup with true value

Pega-IntSvcs | Email/DisableSecuritySTARTTLS | true

@SubhashK7107

Please follow the steps mentioned in below link to make Gmail email account connection work. Gmail stopped less secure app connection functionality so you need to follow the approach mentioned in below link..

Email Account is not working | Support Center (pega.com)

@Gunasekaran_Baskaran

Thank you very much. I was trying hard in pega end without knowing the 2-step verification and app password creation in google account.

For other who are trying in personal edition, disable the antivirus during the configuration.

@Nadimuthu T
Thank you very much