Sending compressed files using SMTP

Hello Guys,

I am trying to send a zip file in email.
I have a test flow containig these two services:

→ pub.file:getFile
→ pub.client:smtp

I mapped the output byte of getFile to the attachments/content of the smtp service. Other details, contenttype = application/zip, encoding = base64.
But when I run it, it says java.lang.ClassClastException: com.wm.util.Values …

Am I doing the right thing or I have set some wrong values?

Thanks,

Dee

pub.client.smtp service itself provide a way to send attachements in a single step.

You can call this service and pass on the path of your zip file to “attachments/filename” and set the “attachments/contenttype” to “application/zip”.