Multiple Copy/Move file in e-mail body

Discuss RoboTask here
Post Reply
Gekseppe
Posts: 16
Joined: Tue Sep 02, 2008 4:45 am
Location: Iceland

Multiple Copy/Move file in e-mail body

Post by Gekseppe »

Hi;
I'm trying to use the function Copy/Move file in an e-mail body as follow:

pippo1: 'file to copy1'
pippo2: 'file to copy2'
pippo3: 'file to copy3'

'Pippo1,Pippo2,Pippo3,' is a (fixed) value written directly into e-mail body.

The result of this is an e-mail which always reports only the first line (i.e. pippo1: 'file to copy1') while the other values are omitted.

Is there a way to have all the three lines into the e-mail body ?

Many thanks for your help.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Multiple Copy/Move file in e-mail body

Post by Oleg »

What is your target?
I understand you so: you want to send some files in attachment but sometimes you haven't all three files at a time.

I think that there is more simple way to do this.

for example:
You may to write the list of files into text file (one filename per line).
Next, put the following expression into email attachment: {TextFile(<Full_file_name>)} into mail attachment.

If the list is empty then RoboTask sends the message without attachments. Otherwise it sends only specified files.
Gekseppe
Posts: 16
Joined: Tue Sep 02, 2008 4:45 am
Location: Iceland

Multiple Copy/Move file in e-mail body

Post by Gekseppe »

For sure I was not clear enought

I have three files.
I run the 'Copy/Move file' function on each file.
Then I send an email and use the function to copy the contents of the text files into the e-mail body like this:

Fixed text: {TextFile(c:\File1.txt)}
Fixed text: {TextFile(c:\File2.txt)}
Fixed text: {TextFile(c:\File3.txt)}

Unfortunately into the email only the value stored into the File1 is shown; then the email is blank...
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Multiple Copy/Move file in e-mail body

Post by Oleg »

Can you send your task?
I've just tried to put a few text files into the message body. It's working
Post Reply