Question
Capgemini
FR
Last activity: 15 Feb 2017 12:34 EST
Gmail email integration : java.net.ConnectException: Connection refused
Hi all!
I'm creating a Gmail email integration in Pega but the connection test fails. I followed the steps of the document: https://www.pegaxchange.com/tag/prpc-email-account/
I set up my Gmail account to turn on "Enable IMAP" the IMAP access and I switch the setting "Allow less secure apps" on On.
It did not solve my connection problem.
In attach file you can see the result of my connection test for sender.
For information, I work on a platform Pega 7.2
Has anyone ever encountered this problem?
Thanks
-
Like (0)
Sagar Chavan -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Metafinanz
DE
Hi ElodieS2,
From the error message I see that VM doesn't have internet access.
Can you trying accessing internet? If you are able to access, then try to ping gmail server.
If not, try to updateNetwork Adapter Settings. And check if your Firewall is configured properly.
Hope this helps.
Incessant Technologies
IN
Hi
I dont think any change in GMail setting is not needed for integration with PRPC just giving the detail of SMTP or IMPA/POP of your choice would be sufficient. Just toggle the 'Use SSL' if face any issue.
Information about GMail setting - https://www.lifewire.com/what-are-the-gmail-imap-settings-1170852
Capgemini
FR
Hi RajeshYadav,
Thank for your reply.
I use the SSL in the email account. Controls are populated as follows:
Sender > Host (SMTP): smtp.gmail.com
Sender > Port: 587
Sender > Use SSL?: Yes
Receiver > Host: imap.gmail.com
Receiver > Port: 993
Receiver > Protocol: IMAP
Receiver > Use SSL?: Yes
I still have the error
Incessant Technologies
IN
If want to connect SMTP over SSL then try Port - 465 instead of 587 . I too faced an issue with SMTP with the detail you posted here. IMAP detail i tried from your post it is working fine. Let me know if this works for your or not ?
Please find attached configuration that i tried and it is working fine for me.
Capgemini
FR
It's the same, even with port 465.
It seems that the problem comes from the configuration of the VM.
I'll look this and I'll keep you informed.
Thanks.
Accepted Solution
Metafinanz
DE
Hi ElodieS2,
From the error message I see that VM doesn't have internet access.
Can you trying accessing internet? If you are able to access, then try to ping gmail server.
If not, try to updateNetwork Adapter Settings. And check if your Firewall is configured properly.
Hope this helps.
Capgemini
FR
Hi,
I have contacted the support of my company to solve this problem of connection on the VM. After their intervention, it works well.
Thank you to all of you.
Pegasystems Inc.
US
SMTP port 587 is commonly used with STARTLS connection security, not "SSL." The "use SSL" checkbox should not be checked when using port 587. Traditional STMPS (SMTP over SSL) can be done via port 465, but this is a legacy feature of gmail and port 587 is the preferred port.