Attaching a file using a variable

Discuss RoboTask here
Post Reply
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Attaching a file using a variable

Post by marcolobaido »

Hi everybody,
Can I associate a file to a variable and attack it in a mail? (using Send Mail).
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Attaching a file using a variable

Post 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 15600 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
Oleg Yershov
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Attaching a file using a variable

Post by marcolobaido »

I love Robotask!!!
marcolobaido
Posts: 70
Joined: Thu Jul 02, 2015 3:54 pm

Re: Attaching a file using a variable

Post by marcolobaido »

Thanks for your fast support!!! :)
Post Reply