hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need to send a list of filenames as email msg body

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Sep 17, 2009 8:06 am    Post subject: Reply with quote

The StringTokenizer only uses 1 character as a token.
so try ^ as the token first.. then strip off the #.

also the variables are stored as single lines, so you cannot store a variable as:
filename1
filename2

Or, you could use filename1, filename2 ... etc.. instead
for this you could use the Replace function:

String newVar = var.replaceAll("#^", ", ");
newVar = newVar.replaceAll("#"," ");
Back to top
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Fri Sep 18, 2009 12:46 pm    Post subject: Reply with quote

Your only other option would be:
Use the script to write the message body you need, to a text file . See the script examples on how string to write to text files.

Then in your email task, message body field use:
$$$c:\test\test.txt

where c:\test\test.txt is the message body you output from the script.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group