tsendmail

Four Stars

tsendmail

I have a list of mail ids in a file. I need to send mail to all in that list.

I'm using tfileinputdelimited >> tflowtoiterate >> tsendmail

In tsendmail I'm mentioning as ((String)globalMap.get(row1.value)) on the field To

I'm getting java.lang.NullPointerException error. Please help

Four Stars

Re: tsendmail

or do we have any other options. If I specify mail id in tsendmail with ',' separated it did work. But how to read mail ids from a  file

Community Manager

Re: tsendmail

Hi
Quick question: do you want to send only one email to different ids or send different emails for each id?
To get the value of global variable, use expression
((String)globalMap.get("row1.value"))

Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Employee

Re: tsendmail

Hi,

 

    Could you please advise whether all the email ids are in single row or are they located as multiple rows in the file?  If you have email ids as multiple rows, you may have to first merge them to single row and then send it to email component. If you could share some sample input records and expected output for those records, we can try to provide some sample solutions.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog