Mailing list problem

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

Mailing list problem

Post by marcolobaido »

Hi, i tried to use the "text loop" action to send the same mail to a mailing list.
I wrote a text file in which I put all the mail addresses in different lines. I used "text loop", and "store current line to variable" {MAILLIST}.
I send the e-mail TO: {MAILLIST} with CC: my e-mail address (to control the process).

I: 06/12/15 18:56:46: Executing "1.Create local variable "MAILLIST" with value """
I: 06/12/15 18:56:46: Executing "2.Text Loop"
W: 06/12/15 18:56:46: Illegal name of variable ()
I: 06/12/15 18:56:46: Executing "3.Send Email"
I: 06/12/15 18:56:47: Executing "4.End Loop"

Code: Select all

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task38"
Hide=INTEGER|0
ID=INTEGER|1023130397
LocalVariables=STRING|"MAILLIST="
LogOnAsUser=INTEGER|1
Name=STRING|"Loop mail"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

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

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""MAILLIST"" with value """""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"1"
varkind=STRING|"1"
varname=STRING|"MAILLIST"

[Actions\Action2]
ActionID=STRING|"A_LOOP_TEXT"
Enabled=INTEGER|-1
Name=STRING|"Text Loop"
Params=FOLDER
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Mailing list problem

Post by Oleg »

This is incomplete task. You have missed a half of the task parameters...
But I think that the problem is that you specified variable name with braces "{}"
You have to specify variable name only in the loop
Oleg Yershov
Post Reply