When we are sending an email to pega we need to download that incoming mail and also need to send that as an attachment how to do this?

When we are sending an email to pega we need to download that incoming mail and also need to send that as an attachment how to do this?do we need to select this in an email listener:Keep messages on server (Not applicable for POP3);or do we need to select this-Save original email (in EML format).

Here are the steps,

  1. Records → Email Listener.
  2. Go to Process tab.
  3. Enable Save original email (in EML format).
  4. In your correspondence/activity, retrieve the generated attachment and include it in the outbound email. Pega stores the inbound EML as an attachment generated by the Email Listener processing.

@TanyaS58 Save original email option helps you

Hi @RameshSangili after enabling the save email option I didnt get the 4th point that you have stated ,how in the service activity we will get this inbound email generated?how to generate this attachment?

you mentioned about sending email as an Attachment, once your service activity processes the email it gets attached to the WO (after you selected the save email option) that you create with the service activity. You can use this to send that as an attachment in your correspondence activity.

Hi @CharanT9 i want to understand the logic that how will this incoming email be sent as an attachment ;this is my service activity and inside this there are other activities being invoked so how to send an attachment? I am trying to understand the logic that i need to write to send an attachment in an email

from looking at the screenshot, you are using email bot if I’m not mistaken.

Please check Activity pzPostProcessTriageWork Step 3 and 4.

For additional reference the Email WO that gets created will already have the email thread for reply, will that solve your business requirement ?

@CharanT9 so there is an extension point present in the activity,yes correct i am using an email bot.In step 5 of pzPostProcessTriageWork activity we can perform any additional actions on triage work so now how to send this inbound email as an attachment thats my use case.How to generate this attachment is my challenge and in correspondence rule i cant find any option to include attachment.

image

Hi @RameshSangili I get it now we have an OOTB activity CorrNew in this we have to check the parameter to send attachment,thanks.