Five Stars

How to send an attachement with cMail?

I am trying to create a REST endpoint route that will take in a subject, to, from, body, and attachment parameters and turn around and using a cMail component to send the email.  I can send the email fine, but have no idea how to get the attachment to be sent.  Does anyone have an example?

 

cRest => cSetHeader => cSetBody => cMail