Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (3)
3 Replies
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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