June 9, 2008 at 2:38 pm
I created a foreach loop container with a foreach file enumerator. I defined the folder path and files (*.txt). I Set up a variable mapping User::FileName as string. This ran successfully by itself. When I attempted to use send email task by incorporating it in the foreach loop container, I could not configure the 'send email task' to accept my files enumerated.
Where might I attach my variable User::FileName? The attachments box in the send email task doesn't seem accessible to my files from the foreach loop container.
My goal is to send all files (12) in the directory (the names change daily because they are timestamped) in one email or if necessary an email for each file (far less elegant).
June 10, 2008 at 12:48 am
You would probably have to build a variable which builds the filelist of the directory during the FOR EACH loop step.
Then, you would add this variable to your send mail task which would run outside the for each loop (specifically because you want to send all the files in one go)
in the expressions on your send mail task, there is a property called "FileAttachments"
Good luck!
~PD
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply