Press "Enter" to skip to content
  1. Vinod Kumar Vinod Kumar

    I tried the same steps Bro ,even I made the secure options are less secure in gmail, But when I clicked on test connectivity for sender option .I am getting the following error message.

    “A secure Connection cannot be established with outgoing SMTP email server.please check Application server configuration.”
    can you please help me

    • Premkumar G Premkumar G

      Can you tell me the host name of the email server you are trying to connect? Also is there any proxy network involved? I mean, trying inside your organization network?

    • sai ananth sai ananth

      Check for

      “Connection” area in sender if Port number: 587 then the check box USE SMTPS should be UnCheck.

  2. Sowmya Sowmya

    Hi Prem,

    I have one small question,in one particular flow I want to send an email with pxupdateoperator Id . So in this case I don’t want to send my email with the email Id that I have configured in outbound.Can u please tell me how to override outbound default email id with pxupdateoperator id ??

    • Premkumar G Premkumar G

      Hi Sowmya,
      I can understand your requirement.

      If you need to send an email automatically, then you should have an email account registered with the email ID.
      In your case, you need to dynamically send email from operator ID, who is working on the case. To my knowledge, this is not feasible within Pega email account.

      I have a solution. Instead of sending the mail automatically, you can have an email button in the section. Configure it with outlook and send from the email ID that belongs to the operator. This should be done manually using email icon.

      Other comments and solutions are welcome. πŸ™‚

    • Giraj Giraj

      May not be good approach.but one email account enough to do this before sending the mail in flow call utility.In utility open the rule form using obj open and identify the property in which pega saves the mail id update it do obj when flow reaches at send email shape its sends with mail id which is updated.
      But later again i think you need to bring back to initial mail id which was there.

    • The solution given by Giraj is feasible to a certain extent if the pxUpdateOperator is willing to provide his credentials before sending the email. This password, though it is encrypted will get stored in EmailAccounts instance before the email gets triggered. Also, when we think in a broader aspect, since we have only one account per work pool, let’s assume more than one user is trying to send email, in that case the system might run into a potential lock issue.

      I agree with Prem’s solution of opening outlook to send an email provided the user’s system is configured with an email client πŸ˜‰

  3. Bhagiradha Bhagiradha

    good explanation prem

    • Premkumar G Premkumar G

      Thank you so much, Bhagiradha. πŸ™‚

  4. suresh suresh

    Bro Your Really doing good job for who doesn’t few topics in pega, u r all ways making your self bar high

  5. rakesh rakesh

    1)scenario :
    obj save–page1
    obj save–page2
    obj save cancel—blank
    which page is saved in db?
    is step page required for commit/

    • Premkumar G Premkumar G

      I assume ‘write now’ is not checked in obj-save
      Step 1: Page1 is saved to deferred instance list
      Step 2: Page2 is saved to deferred instance list
      Step 3: Removes the most recent un-commited obj-save instance. In our scenario – Page 2.
      Step 4: Will commit all the deferred instances. Only Page1 is commited ( since Page2 is removed)

      Note : Obj-save-cancel & commit don’t require any step page πŸ™‚

  6. sai ananth sai ananth

    Xlent Bro… Every Helpful information….

    • Premkumar G Premkumar G

      Thank you so much, Sai Ananth πŸ™‚
      Glad that you find it useful. πŸ™‚

  7. Manasa Manasa

    Hi Prem,
    It was very helpful thank you :).

    • Premkumar G Premkumar G

      Hi Manasa,

      Thank you so much and I am glad that you find it helpful. πŸ™‚

  8. Abdul Mohammed Abdul Mohammed

    Thank You so much prem for explaining complicated topics with such good scenarios. i have one request can you please make one article on Inbound email and decision table/tree example using expressions. Thank You πŸ™‚

    • Premkumar G Premkumar G

      It is my pleasure, Abdul. πŸ™‚
      Happy to hear that you find it useful. πŸ™‚
      Yeah Abdul, I’ve noted the topics down. I’ll try to post them soon.
      Stay tuned. πŸ™‚

  9. mohammed faijas mohammed faijas

    Good one

    • Premkumar G Premkumar G

      Thank you, Mohammed. πŸ™‚

  10. Janaka Janaka

    This is awesome.

    • Premkumar G Premkumar G

      Thank you so much, Janaka. πŸ™‚

  11. Hey Prem,
    As always, a clean explanation. I would like to see a post that explains Key stores instances and certificates. How about that?

    • Premkumar G Premkumar G

      Sure Rat. I will try to make a post on that challenging topic soon πŸ™‚

  12. Vamsi Krishna Vamsi Krishna

    Excellent Article Prem, keep up. You are the champ!

    • Premkumar G Premkumar G

      Thank you so much for your appreciation, Vamsi. πŸ™‚

  13. Karthik Karthik

    Well written post, ive read few other posts of yours, all were good and easy to understand.Appreciate your efforts.

    • Premkumar G Premkumar G

      Thank you so much for your appreciation. πŸ™‚
      Glad that you like it. πŸ™‚

  14. Raj Raj

    Thank you so much Prem for explaining all these with scenario, I’m getting an issue,in my case both sender and receiver connectivity are successful,I added send email shape in flow and configured using gmail and run it. but didn’t get mail with correspondence message,opened attachment from flow,got the below error:
    Error Sending Email:
    ** couldn’t connect to host :vfwiappdb2040,25:timeout 60000

    • Premkumar G Premkumar G

      Hi Raj,
      From you error message, I can see you trying to open port 25 to send email.
      Please try using port 587 and test it πŸ™‚

  15. Raj Raj

    Hi Prem,
    Thanks for response,I tried by changing port 587,but still getting same error with port 587, tried with both gmail as well as my office email by enabling less secure app for gmail & I request you can please make one article in simple topic but little bit confusion like pagelist,page group,valuelist, value group & when to use all these. πŸ™‚

  16. mahesh mahesh

    Hi Prem,
    I’m using port 587, SMTPS unchecked.
    In gmail allow less secure is on.
    But still i’m getting the configuration error.
    can you please advise what could be the problem.

    • Premkumar G Premkumar G

      Hi mahesh,
      Can you please paste me the exact error

  17. mahesh mahesh

    connect to email server Fail.
    May be the reason, in my mobile my gmail is logged in.
    I didnt changed any settings in app.

  18. Venkat Venkat

    Hey Prem,

    I followed the steps provided by you but still I am getting the below error while connecting from exercise system in PDN.

    “The connection to the outbound email server timed out. The server may be unavailable, or the connection configuration may be incorrect. Verify Username, password, and SSL options”

    I used gmail, and Host:port are
    Use SMTPS is unchecked.

    Please advice what to do.

  19. Harish S Harish S

    Thanks Prem

    Your articles are very good and easy to understand it.

    • Premkumar G Premkumar G

      You are welcome, Harish. πŸ™‚
      Glad to hear that you like it. πŸ™‚

  20. vinod vinod

    Hello prem,

    my question is… when customer rise the ticket, pega application should generate a ticket id for that mail and sent that ticketID to customer mail. can u please share the process of this.. how to do.

    Thanks & regards

  21. Ravi verma Ravi verma

    Hello Prem Kumar,
    Can you make a post for Inbound Mail.

    Thanks & Regards
    Ravi Verma

    • Premkumar G Premkumar G

      Hello Ravi,

      Yeah many people have asked about that post. I’ll try to post about them soon.

      Premkumar G

  22. Raj Raj

    Hi Prem,
    Could you please post the implementation on “How to Approve/Reject” a case from Email

    Thank you,

  23. jeh... jeh...

    Hi Prem,

    hello how can I send an email with dynamic content? It means that I can change the subject the greeting s and the email address of the recipient based on the value on the clipboard?

    and also how can I add cc in email address.

    Thanks a lot


  24. Srikanth Srikanth

    Hi Prem,

    It’s a very detailed explanation. I like the way you explained. Kudos to your work. Keep going on..


    • Premkumar G Premkumar G

      Hi Srikanth,

      I’m happy to hear that you liked it. Thank you so much for your appreciation. I’ll keep on updating the site with new posts. πŸ™‚
      Stay tuned. πŸ™‚

      Premkumar G

  25. Srikanth Srikanth

    Hi Prem bro,

    I have created email through wizard and received confirmation then click on done button it closes.But now i was unable to open the edit email account , could u please forward mw from here??


    • Srikanth Srikanth

      Ok prem,

      I understand the concept and i got my requirement.


      • Premkumar G Premkumar G

        You are welcome, Srikanth. πŸ™‚

  26. Krishna Krishna

    Hi Team,

    I have configured “Receive an email and create a work object” and I see the below error in service email trace.So,it is not creating the work object.

    pyWorkPage.pyWorkParty(Customer).pyEmail1 — (Data-Party-Person)Method.Property-validate PropertyRequired .pyEmail1

    • Premkumar G Premkumar G

      Yes. Please check my work party post. When you set work party, OOTB validate rule can be called to validate the property values. Validate rule can be Data-Party-Operator/Person.
      If you really need customer as work party, set valid pyEmail1 which is mandatory. You can remove workparty / update it. Just trace the service email

    • Agnibha Agnibha

      Yes i faced the same issue

  27. Siva Siva

    Wow!!!!! xlent working..Thank you so much!!!!!
    Can you post something about how it will be in real-time project like
    how many peoples work on one project and what are the roles etc

    Many Thanks in Advance

  28. abhishek tripathi abhishek tripathi

    please make a lecture on email listener and inbound email.

  29. Sandeep Yadav Sandeep Yadav

    Hello Prem,

    I tried above steps and it was working fine for me before. But now when i try to test the email account, I am getting below error:-

    The connection to outbound email server timed out. The server may be unavailable, or the connection configuration may be incorrect. Verify username, password, SSL options

  30. Krishna Krishna

    Hi Prem,

    I am unable to receive email while sending email using Pega. I am getting below error message.

    I have followed the above document for email configuration.

    Error Sending email:
    ** caught com.sun.mail.smtp.SMTPSendFailedException : 530.5.7.0 Must Issue a STARTTLS Command first. k12-v6sm49837699pgq.23 – gsmtp

    Please help me on the above issue.

    Thanks & regards,

  31. Gurneet Gurneet


    Currently we are using host of Lotus Notes and this is going to get decomissioned and to be moved to Microsoft Exchange Server. We have a receiver configuration where we are using Email Listeners but the issue coming is that our organization does not allow to use IMAP protocol or support Email Listeners. Could you please tell how to proceed with this ?

  32. Sameer Sameer

    Hi Prem,
    Thanks for the post.
    I have created the email account by right clicking on the email account under records which gives similar form, successfully tested the connectivity but when I am using the send email the mail is send through and not through the email account which I configured. Can you let me know why.

  33. Agnibha Agnibha

    Hi Prem,

    Can you share the email listener configuration please. I tried to configure it but sometimes its not working and also i can’t see it in SMA also.Little clueless.

  34. Chaitanya Chaitanya

    Hi Prem,

    Awesome Post.

    Perhaps, could you shed some light on the creation of work object part through an email
    “Receive an email and create work object” option and a small example with it.

  35. Ali Ali

    Hi Prem,

    Appreciate your efforts, Very detailed.

    I was wondering is there any way to Configure an Email Account for non- Work pool class Which is not listed under (Workpool will be associated with this Email Account)?

    If yes can you please provide some information on that.

    Thanks πŸ™‚

  36. priyanka priyanka

    hi prem,
    can you explain how to validate email(whether the email is valid or not)??

  37. Developer Developer

    First of all I love how you make every topic seem so simple and easy to understand by tying it with a everyday situation. Great work!!

    Have a question for you. We have a working Production outbound and inbound email setup. Both in and outbound emails are working as expected but we have a very small problem. When the user tries to send outbound email from the case we have provided the user email id search functionality like ‘Ctrl+K’ in outlook. for ex if I type ‘She’ and hit Search it gives me all users with ‘she’ in their email id. Problem is this only works in Dev and none of the other higher environments. Nothing comes in logs either. Any idea what could be the problem?

    Email acc details are:
    Sender connection host –, port 587, ‘Use SMTPS’ unchecked
    Receiver connection host –, port 993, Protocol – IMAP, ‘Use SSL/TLS’ checked

    Thank you in advance!

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!