Multiple Attachments in One Email from tFileList

One Star

Multiple Attachments in One Email from tFileList

Hi,
I'm trying to send an email with multiple attachments. If I have a tFileList, I can iterate and send one email per file using ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")), but how do I add multiple attachments to a single email?
Thanks!
One Star

Re: Multiple Attachments in One Email from tFileList

I found out a way to send multiple attachments with tSendMail: in the attachments list you can specify also folders. In this way it will send all files contained in the listed directories.
One Star

Re: Multiple Attachments in One Email from tFileList

I found out a way to send multiple attachments with tSendMail: in the attachments list you can specify also folders. In this way it will send all files contained in the listed directories.

Thanks a lot. This has helped me in solving the issue I was encountering.
Regards,
Joseph
One Star

Re: Multiple Attachments in One Email from tFileList

how do you specify the folder?
Community Manager

Re: Multiple Attachments in One Email from tFileList

how do you specify the folder?

please see my screenshot, specify the folder path in the attachment list, it will send all files (do not include the files in the sub directory) in a single email.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Multiple Attachments in One Email from tFileList

I specified the folder and the mail was still sent multiple times:
"C:/Talend/5.0.2/studio/Talend-Studio-r78327-V5.0.2/workspace/Sales"

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 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog