 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
g-bau
Joined: 09 Sep 2009 Posts: 4 Country: Germany |
|
Multiple Messages Mailsend |
|
Hi,
I would like to know how I can send multiple messages with the command "mailsend"
Syntax:
MailSend( "<Mail>", "<Password>", "<Recipient>", "<Subject>", "<Message>", "<2nd>" )
or
MailSend( "<Mail>", "<Password>", "<Recipient>", "<Subject>", "<Message>", variable)
It doesnt work like this.
I need to know how to send multiple messages and "Messanges & Variables".
|
|
Wed Sep 09, 2009 9:56 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
I'm not sure what exactly doesn't work for you. In your example you have specified more parameters then what is supported by MailSend command.
Please provide more details.
|
|
Wed Sep 09, 2009 12:15 pm |
|
 |
g-bau
Joined: 09 Sep 2009 Posts: 4 Country: Germany |
|
|
|
I want to send a E-Mail with the Command Mailsend, I need to combine text with a variable for the message i need to send.
MailSend( "<Mail>", "<Password>", "<Recipient>", "<Subject>", "<Message>" )
or
MailSend( "<Mail>", "<Password>", "<Recipient>", "<Subject>", variable )
both works
MailSend( "<Mail>", "<Password>", "<Recipient>", "<Subject>", variable AND text ) <--- how should the correct syntax look like to combine variable and text?
|
|
Thu Sep 10, 2009 2:48 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
To be honest with you, this is not a MailSend question. This is a question about how to use variables in JAL. I suggest to start with reviewing JAL Overview and Syntax topics in the on-line help.
Some examples, that may help you to get started
 |
 |
Dim my_variable, string
Set my_variable, "whatever is needed"
Concat my_variable, " something else here", my_variable
FileReadAll( "C:\\whatever.file", my_variable )
DatabaseRetrieve... , my_variable
RegistryRead..., my_variable
...
MailSend ..., my_variable |
And of course different variables can be used for different parameters. The above are just simplified examples
|
|
Thu Sep 10, 2009 6:50 am |
|
 |
g-bau
Joined: 09 Sep 2009 Posts: 4 Country: Germany |
|
|
|
No, thats not the Point, I know how to set a varaible.
It is a MailSend question because, I want to know how I can send a message AND a variable at the same time.
|
|
Thu Sep 10, 2009 9:50 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
That's exactly my point. You are unsure how to use a variable. This is not specific to MailSend, otherwise you wouldn't ask this very basic question.
Dim my_var, string, "this is my message"
MailSend(... [omitting parameters here] ..., my_var)
Set my_var, "something else"
MailSend(... [omitting parameters here] ..., my_var)
|
|
Thu Sep 10, 2009 11:29 am |
|
 |
g-bau
Joined: 09 Sep 2009 Posts: 4 Country: Germany |
|
|
|
OK, I try it again
Here for Dummies:
With the Funktion MailSend you are able to send a textmessage or a Variable with a specific value.
My Syntax:
Dim var, string
set var, "test"
MailSend(Bonny@clyde.us, thompsonm1a1, cops@chicago.us, none, "this is a")
Ok and now to the important thing I am triing to explain. How does the syntax have to look like to recieve the message: "this is a test" by using the variable with the already declared text message.
Is there also a way to send two variables with different messages?
Plz don´t ask me why I want to do that. I know I could use the easy way by setting a variable with the specified text.
Last edited by g-bau on Fri Sep 11, 2009 8:55 am; edited 1 time in total |
|
Fri Sep 11, 2009 7:01 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Please do me a favor, open the manual and read the JAL Overview section, then study at least one JAL script example.
I'll be real happy to help you with technical issues, troubleshooting, finding acceptable automation solutions, etc…, after you learn the basics and you are ready to write JAL scripts.
PS. In this single line you got 4 syntax errors demonstrating complete misunderstanding of strings, constants, variables, etc
MailSend(Bonny@clyde.us, thompsonm1a1, cops@chicago.us, none, "this is a")
|
|
Fri Sep 11, 2009 8:53 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|