Page 1 of 1

Attaching a file using a variable

Posted: Thu Jul 02, 2015 3:59 pm
by marcolobaido
Hi everybody,
Can I associate a file to a variable and attack it in a mail? (using Send Mail).

Re: Attaching a file using a variable

Posted: Thu Jul 02, 2015 4:19 pm
by Oleg
Yes, of course. Just put the file name into variable (suppose MyVar = D:\Temp\myfile.zip)
Next, put the expression {MyVar} into "Attachments" field (see screenshot)
attach.png
attach.png (49.56 KiB) Viewed 15605 times
If you want to attach several files you have to put into variable all filenames as multiline text: one file name per line.
For example:
D:\Temp\myfile.zip
D:\Temp\myImage.jpg
D:\Temp\myText.txt

Re: Attaching a file using a variable

Posted: Thu Jul 02, 2015 4:26 pm
by marcolobaido
I love Robotask!!!

Re: Attaching a file using a variable

Posted: Thu Jul 02, 2015 7:02 pm
by marcolobaido
Thanks for your fast support!!! :)