e-mail help

Discuss RoboTask here
ccrespo
Posts: 6
Joined: Wed Dec 07, 2005 1:24 pm

e-mail help

Post by ccrespo »

How would i program robotask to e-mail different people when files are added for different folders, but then delete those files when being sent.  But the files being moved into the folder are posted with a date time... for example INB120505.txt, is being moved into a "send" folder where it whould be e-mailed to someone then automatically be deleted...
The help that is provided online gives no insight into anything like this...and doesnt explain anything well..
Last edited by ccrespo on Wed Dec 07, 2005 6:16 pm, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

e-mail help

Post by Oleg »

See example below. This task will be launched every 60 sec and will send each *.txt file in folder "c:\source\to oleg" to me in separate messages. After sending the file will be removed.
If you have a few recipients you should have a few folders (one folder for each recipient)

Save text of the task into file and use menu Task | Import to import into RoboTask. Do not forget to enable this task after importing.

;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|565106205
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task354"
Hide=INTEGER|0
ID=INTEGER|1079978417
Name=STRING|"sending email automatically"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER

[Actions\Action1]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER

[Actions\Action1\Params]
createmode=STRING|"1"
date1=STRING|"20051208"
date2=STRING|"20051208"
destvar=STRING|"FILE_TOSEND_OLEG"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"C:\source\To Oleg\*.txt"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
searchkind=STRING|"0"
subdirs=STRING|"1"
timesize=STRING|"0"
WithoutPath=STRING|"0"

[Actions\Action2]
ActionID=STRING|"A_INET_SENDMAIL"
Enabled=INTEGER|-1
Name=STRING|"Send Email"
Params=FOLDER

[Actions\Action2\Params]
attachcount=STRING|"0"
auth=STRING|"0"
from=STRING|"oleg@robotask.com"
host=STRING|"localhost"
html=STRING|"0"
msg0=STRING|"{TextFile({FILE_TOSEND_OLEG})}"
msgcount=STRING|"1"
password=STRING|"2488926989246882673624690"
port=STRING|"25"
subject=STRING|"New incoming"
to=STRING|"oleg@robotask.com"

[Actions\Action3]
ActionID=STRING|"A_FILE_DELETE"
Enabled=INTEGER|-1
Name=STRING|"Delete File"
Params=FOLDER

[Actions\Action3\Params]
Count=STRING|"1"
deletedirs=STRING|"0"
file0=STRING|"{FILE_TOSEND_OLEG}"
subdir=STRING|"0"
ToRecycleBin=STRING|"0"

[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Params=FOLDER

[Events\Event1\Params]
id=STRING|"1HAUVA09"
interval=STRING|"60"
ccrespo
Posts: 6
Joined: Wed Dec 07, 2005 1:24 pm

e-mail help

Post by ccrespo »

how do you learn to program like that, are there any additional resource materials i can invest in?
ccrespo
Posts: 6
Joined: Wed Dec 07, 2005 1:24 pm

e-mail help

Post by ccrespo »

also whats the seperator for multiple e-mails? a semicolon ;?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

e-mail help

Post by Oleg »

You can use multiple emails like this:
user1@domain.com; user2@domain.com
or
"John Smith"<john@yahoo.com>; "Melissa Wetton"<mw@aol.com>
ccrespo
Posts: 6
Joined: Wed Dec 07, 2005 1:24 pm

e-mail help

Post by ccrespo »

Also what about if the file is not a .txt file, if its a pdf or other type of file...?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

e-mail help

Post by Oleg »

You asked about text files.
Any other files you can mail as attachments
ccrespo
Posts: 6
Joined: Wed Dec 07, 2005 1:24 pm

e-mail help

Post by ccrespo »

Also, I am having problems with sending multiple attachments......sorry for being such a pain, but i run the IT department of a logistics corporation and im just determining if robotask is worth investing in.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

e-mail help

Post by Oleg »

What a problem? Describe in more detail, please.
Or, better, send me your task. Probably you do something wrong.
ccrespo
Posts: 6
Joined: Wed Dec 07, 2005 1:24 pm

e-mail help

Post by ccrespo »

;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|2091259954
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task354"
Hide=INTEGER|0
ID=INTEGER|1079978417
Name=STRING|"Auto Mail"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action1\Params]
createmode=STRING|"1"
date1=STRING|"20051208"
date2=STRING|"20051208"
destvar=STRING|"FILE_TOSEND"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"C:\testsend\*.*"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
searchkind=STRING|"0"
subdirs=STRING|"1"
timesize=STRING|"0"
WithoutPath=STRING|"0"
[Actions\Action2]
ActionID=STRING|"A_INET_SENDMAIL"
Enabled=INTEGER|-1
Name=STRING|"Send Email"
Params=FOLDER
[Actions\Action2\Params]
attach0=STRING|"{FILE_TOSEND}"
attachcount=STRING|"1"
auth=STRING|"0"
from=STRING|"EDI.Notifications@3plg.com"
host=STRING|"localhost"
html=STRING|"0"
msg0=STRING|"New Incoming PO"
msgcount=STRING|"1"
password=STRING|"2591325450254552673618538"
port=STRING|"25"
subject=STRING|"NEW INCOMING PO"
to=STRING|"carlo.crespo@3plg.com"
[Actions\Action3]
ActionID=STRING|"A_FILE_DELETE"
Enabled=INTEGER|-1
Name=STRING|"Delete File"
Params=FOLDER
[Actions\Action3\Params]
Count=STRING|"1"
deletedirs=STRING|"0"
file0=STRING|"{FILE_TOSEND}"
subdir=STRING|"0"
ToRecycleBin=STRING|"0"
[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Params=FOLDER
[Events\Event1\Params]
id=STRING|"FTRLAWPB"
interval=STRING|"60"
When executing, if there are multiple files in the folder, only one file is sent as an attachment.  I need it so that all of the files are included the e-mail
Post Reply