Question
Accenture Services Private Limited
IN
Last activity: 4 Apr 2017 8:05 EDT
Error while running sendemailnotification activity - Caught javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465 . What might be the issue ?
while running sendemailnotification activity - i am getting an error as Caught javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465 . What might be the issue ?
***Updated by moderator: Lochan to add Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
GB
- confirm that you can ping the Google Mail Server from the point-of-view of the PRPC host.
- I believe that for gmail you need to enable 'Start TLS' as well - so make sure you tick the 'secure' (I think that what it is labelled as) checkbox on the Pega Email Form.
Pegasystems Inc.
US
STARTTLS is enabled on port 587 of the gmail server. when using port 465 for the gmail SMTP server, you should be using SMTPS (SMTP with SSL). There is a checkbox on the form for this.
Port 587 is preferable, and Pega 7 has STARTTLS automatically enabled. SSL/SMTPS should not be attempted with port 587.
Accenture Services Private Limited
IN
Start TLS -is this Option available on sendemailnotification activity. Where we need to enable this .
i have checked the use SSL option but still the same issue is this you ment by secure .
Pegasystems Inc.
IN
Hi ,
probably this link should help :
https://www.pegaxchange.com/tag/prpc-email-account/
Pegasystems Inc.
IN
Sometimes Google blocks unauthenticated access to its mail server.
For example if you are trying to send email via Proprietary information hidden then you can face this type of error unless you log in to this Proprietary information hidden and mark your pega application ip as safe.
So please log in to your google account and see whether they are blocking this external access or not. They usually sends a notificaiton about the same in the email.
Updated: 27 Nov 2016 4:13 EST
Coforge DPA
AU
Hi,
Change your seciruty settings in google(gmail account).
Thanks,
Manikumar
PEG
IN
Enable "Less Secure apps" setting for your gmail id and try sending email from Pega. Please test the setting in Email Account data instance.
Refer https://support.google.com/accounts/answer/6010255?hl=en
Pegasystems Inc.
US
The site that gmail sends most users to is this one: https://support.google.com/mail/answer/7126229
It mentions the best option for avoiding this issue - enabling 2-step verification for gmail and assigning Pega an App password.
Cognizant
IN
I tried to configure gmail account and found test connectivity failed.
It's throwing below error message.
I tried to configure gmail account and found test connectivity failed.
It's throwing below error message.
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 587; timeout 60000;
Email Account configuration is done correctly, IMAP Enabled, Less Secure Apps Access:Turn on, Still facing the issue.
Techmahindra
IN
Hi Sarbartha,
Have you tried configuring a new email account and check if your still facing the same issue? If so it could be some small configuration not in place.
Please watch the video : https://pdn.pega.com/pegatube/techtalk-episode-25-resolving-common-problems-email-listeners by SME which covers the common settings we might miss to keep which could lead to this exception.
Regards,
Shanthini Charles
Cognizant
IN
Hi Shanthini,
Thanks for sharing this video. It's really help full for Email Listeners. But I am looking for Email Account configuration issue. My objective is to send email via my gmail account from Pega. When I try to test email connectivity for sender, it's throwing me an error message.
I recreate Email Account Data Instance twice. I have one question which I have from the video. What is the role of System Admin here to identify which email account I have to use? Does Sys Admin provide any specific Permission to use on a particular Email Account Data Instance. Otherwise the configuration is fine.
Pegasystems Inc.
IN
Whether telnet is working fine ?
Telnet <IP OR Host name> <Port No>
Cognizant
IN
Yes, I am getting response from Smtp.gmail.com.