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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
sachin111
Contributor
Contributor

Read a text file and send its whole content as email body

Hi,

I want to read a text file and send its whole content as part of email body.

ex-  testing.txt  contains- 

line1

line2

line3

 

so my email should contain the above data as body.

please help me in getting this result.

 

Labels (2)
1 Solution

Accepted Solutions
akumar2301
Specialist II
Specialist II

You can simply read the file using tFileInputRaw.

 

tFileInputRaw --- tJavaRow

|

|

SubjobOK

|

|

tSendMail

 

in TjavaRow 

globalMap.put("FileBody" , row12.content);

 

tSendMail -- ( in Body)

 

(String)globalMap.get("FileBody");

View solution in original post

2 Replies
akumar2301
Specialist II
Specialist II

You can simply read the file using tFileInputRaw.

 

tFileInputRaw --- tJavaRow

|

|

SubjobOK

|

|

tSendMail

 

in TjavaRow 

globalMap.put("FileBody" , row12.content);

 

tSendMail -- ( in Body)

 

(String)globalMap.get("FileBody");

sachin111
Contributor
Contributor
Author

Thanks @uganesh for teh reply...its working for me.