See task below.
This task sends all files from specified folder via email. Save text of task into any file and use menu Task | Import to import into RoboTask.
Change parameters of “Send Email” action to desired
;**********************
;* RoboTask Task file *
;* Do not edit! *
;**********************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1374766720
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task43"
Hide=INTEGER|0
ID=INTEGER|1109206663
Name=STRING|"Send Email with attachments"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_BROWSEFOLDERS"
Enabled=INTEGER|-1
Name=STRING|"Browse for Folders"
Params=FOLDER
[Actions\Action1\Params]
caption=STRING|"Select Folder"
default=STRING|"None"
filter=STRING|"Text files|*.txt|All files|*.*|"
variable=STRING|"FOLD"
[Actions\Action2]
ActionID=STRING|"A_FILE_SEARCH"
Enabled=INTEGER|-1
Name=STRING|"Create File List (c:\file_list.txt)"
Params=FOLDER
[Actions\Action2\Params]
After=STRING|"0"
aftercount=STRING|"0"
AfterLine=STRING|"0"
Before=STRING|"0"
beforecount=STRING|"0"
BeforeLine=STRING|"0"
createmode=STRING|"1"
date1=STRING|"20050522"
date2=STRING|"20050522"
destfile=STRING|"c:\file_list.txt"
DuringDays=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"{fold}\*.*"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderMonths=STRING|"1"
subdirs=STRING|"1"
WithoutPath=STRING|"0"
[Actions\Action3]
ActionID=STRING|"A_INET_SENDMAIL"
Enabled=INTEGER|-1
Name=STRING|"Send Email"
Params=FOLDER
[Actions\Action3\Params]
attach0=STRING|"{TextFile(c:\file_list.txt)}"
attachcount=STRING|"1"
auth=STRING|"0"
from=STRING|"
user@domain.com"
host=STRING|"smtp_server.com"
html=STRING|"0"
msg0=STRING|"I send you all files in folder "
msgcount=STRING|"2"
port=STRING|"25"
subject=STRING|"test"
to=STRING|"
another_user@domain.com"