Automatically attaching new file

Discuss RoboTask here
Post Reply
Vera.a
Posts: 1
Joined: Wed May 09, 2012 9:28 am

Automatically attaching new file

Post by Vera.a »

Hi!

I've looked around now and havn't found any answers. Hopefully someone here can help me.

I want the Robotask to send an email when a new file is moved to a specific folder (that I've managed to do). But I would also like it to attach the specific file that was put into the folder to the email.

How do I do that? (Should be said that I do not know anything about codes or so)

Thanks,
Vera
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Automatically attaching new file

Post by Oleg »

1. You should set up File Monitor trigger for New files.
2. Go to "Save changes" tab and set up to save list of new files into text file (e.g. C:\temp\NewFiles.txt)
3. Put into attachment of email this expression:
{TextFile(C:\temp\NewFiles.txt)}

RoboTask will replace variable {TextFile(C:\temp\NewFiles.txt)} with contents of the file.
Post Reply