Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Ven6
Contributor III
Contributor III

tSentMail recipient in .txt file

Hello

I have a problem.
I would like to know how, or have an example of a job that allows you to send mail to multiple recipients from tsend mail. the list of recipients found in a .txt file in a directory.

 

plz help

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Yes, tSendMail allows you to sent mail to multiple receipients at a time. To read the recipients from a .txt file, use tFileInputDelimited and append each recipient to a string on tJavaFlex.
tFileInputDelimited--row1-->tJavaFlex
|onsubjobok
tSendMail

on tJavaFlex:
the beginning part:
String to_recipients="";

the main part:
if(to_recipients.equals("")){
to_recipients=row1.columnName;
}else{
to_recipients=to_recipients+";"+row1.columnName;
}

the end part: put the recipients string to a global variable for used later on tSendMail:
globalMap.put("to",to_recipients)

on tSendMai, set the To filed as:
(String)globalMap.get("to")

Hope it helps you!

Regard
Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Yes, tSendMail allows you to sent mail to multiple receipients at a time. To read the recipients from a .txt file, use tFileInputDelimited and append each recipient to a string on tJavaFlex.
tFileInputDelimited--row1-->tJavaFlex
|onsubjobok
tSendMail

on tJavaFlex:
the beginning part:
String to_recipients="";

the main part:
if(to_recipients.equals("")){
to_recipients=row1.columnName;
}else{
to_recipients=to_recipients+";"+row1.columnName;
}

the end part: put the recipients string to a global variable for used later on tSendMail:
globalMap.put("to",to_recipients)

on tSendMai, set the To filed as:
(String)globalMap.get("to")

Hope it helps you!

Regard
Shong
Ven6
Contributor III
Contributor III
Author

Tks i used tfileproperties-->tSetglobalvar-->tsentmail