How to send an attachement with cMail?

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

Moderator

Re: How to send an attachement with cMail?

Hello,

Could you please have a look at my screenshot to see if it works?

cmail.png

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download