Send email with attachments
Hi, I've a requirement to sending an e-mail (include an attachments file inside those e-mail). The Attachments file which generate from activity and store inside the clipboard(AllAttachments.pxResults using Link-Attachment Class). For now i'm already try using SendSimpleEmail inside my created activity and using parameter for the category file to attach, but still can't sending the attachment (only sended the blank email). Is the step or anyone can share the solution? Big thanks and hope you have a nice day. Note: You can check the attachments i'm already upload with the post.
***Edited by Moderator Marissa to update platform capability tags****
-
Likes (2)
-
Please attach the logs if you are getting any error. Please refer the below link it may be helpful.
https://community.pega.com/how-create-activities-attach-files-work-objects

Hi ,
Try using this activity which sends the email along with the attachment "SendEmailWithAttachments".

Hello DaviS.
I have the same problem. I want to send only one category of attachment.
So i used AttachmentCategoryToSend with my own category but nothing is attached to my email at the reception of it.
Do you ve got some resolution?
Benjamin

yeah I saw that, but is it resolved without any SR

Hi,
You need to add that attachment category to case. Then you can add attachment to mail based on your customized attachment category.
please refer the link below for adding attachment category to the case.
https://community.pega.com/sites/default/files/help_v74/express/procomhelpmain.htm#case-management/case-designer/case-wide-properties/attachment-categories/cm-adding-attachment-category-to-case-type-tsk.htm#Adding_an_attachment_category_to_a_case_type

If you are using SendSimpleEmail Activity pass the IncludeAttachments parameter also to true. Then it will work. If you have only 1 attachment, then you can use SendEmailWithAllAttachments too.