Question
Mindtree
AU
Last activity: 19 May 2016 4:26 EDT
Getting the "Error sending email: ** Caught com.sun.mail.smtp.SMTPSendFailedException" while sending the mail.Can anyone tell the reason for this and how to rectify?
To see attachments, please log in.
-
Likes (1)
Bandaru Saikanth -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Hi Krishna,
What version of Pega are you using?
Did this ever work?
Do you see this whenever you try to send an email?
Is there a full stack of the exception in the log? If so, can you provide it?
Mindtree
AU
Hi Nicholas,
I am using 7.1.8 version and I tried this first time. Actually I created Email account,there sender and receiver connectivity was successful.After creating the case,in attachments I clicked on correspondence and I am getting the above mentioned error.
Is there a corresponding error in the PegaRULES log file? If so, can you provide it?
You can also update the following logger to debug level logging and this may provide further details in the log:
com.pegarules.generated.pega_integrationengine_default
Pegasystems Inc.
IN
Hi Krishna,
I recently edited a PDN article, which had the same error message. Maybe this article might help you. I've pasted the link below. However, this article was written for an issue in PRPC 6.2 SP2.
https://community.pega.com/support/support-articles/unable-send-email-configuring-smtp-server
Coforge DPA
IN
Hi Krishna,
In your email account change the port number from 25 to 587,this might solve your issue.
Thanks,
Prathap
Updated: 19 May 2016 4:26 EDT
Pegasystems Inc.
GB
Further to Prathap's suggestion: since you are using Gmail here: see this link also (which also list the 587 Port Number, or the alternative 465):
https://support.google.com/mail/troubleshooter/1668960?hl=en
You will also need to enable 'starttls' (I believe this is labelled 'Use SSL' in the PRPC Email Account Rule form).
Additionally (as per other suggestions here): if this still doesn't work : you probably should aim to get a Java Stack Trace (and possibly even SMTP debug) information in order to troubleshoot further.
You should have a 'test connection' button on your Email Account Form in the PRPC Designer Studio - if it is failing to connect - check the PegaRules.log for errors.
You can also enable DEBUG logging for the PRPC 'SendEmail' function (in the 'Default' Library) - use SMA (AKA 'prsysmgmt') to enable DEBUG for the library functions. (From memory: I believe you have to enable DEBUG at the library level rather than at the level of a single function, but I could be wrong).
Cheers
John