Page 1 of 1
revMail syntax question
Posted: Mon Jan 28, 2019 5:02 pm
by DavJans
The following works great:
Code: Select all
revMail "email1@domain.com",,"Equipment Maintenance Request", tEmail
address (string): A string consisting of one or more email addresses, separated by commas.These addresses appear in the 'To:' header of the email message.
-
http://livecode.wikia.com/wiki/RevMail
The following doesn't work:
Code: Select all
revMail "email1@domain.com,email2@domain.com",,"Equipment Maintenance Request", tEmail
Thank you in advance for your help.
Re: revMail syntax question
Posted: Mon Jan 28, 2019 5:30 pm
by bogs
Well, I'll start off by saying I've not yet used revMail for anything, but, according to
Max's excellent wiki, I think your 2nd example should look more like this -
Code: Select all
revMail "support@livecode.com","me@example.org","Installation Help"
in the above snippet, the two addresses are individually in quotes -
[ "
support@livecode.com","
me@example.org" ]
in your example, though, they are both in one quote -
[ "
email1@domain.com,
email2@domain.com" ]
so try changing that part and see if it goes ?
Re: revMail syntax question
Posted: Mon Jan 28, 2019 5:38 pm
by Klaus
Mr. Bogs,
the second "item" in the syntax is the CC address!
The first item, as quoted from the dictionary above (sic!), is supposed to contain a COMMA delimited list of email adresses for the TO part of the email. And that ovioulsy does not work as advertized for DevJans.
Works fine here on my Mac 10.14.3 and LC 9.02 however:
Code: Select all
on mouseUp
revMail "email1@domain.com,email2@domain.com",,"Equipment Maintenance Request", "bla bla bla"
end mouseUp
Opened my mailclient with these two addresses in the TO field!
Best
Klaus
Re: revMail syntax question
Posted: Mon Jan 28, 2019 5:41 pm
by DavJans
Thank you for helping, unfortunately that causes the second email address to move down to CC address and If I add a 3rd email address that way it moves that down to the subject line.
Re: revMail syntax question
Posted: Mon Jan 28, 2019 5:46 pm
by Klaus
Works fine on my Mac, see screenshot. Also no problem if I add a CC adress.
What platform are you on? Sounds like a bug to me...
Re: revMail syntax question
Posted: Mon Jan 28, 2019 11:15 pm
by bogs
My bad, carry on!

Re: revMail syntax question
Posted: Tue Jan 29, 2019 6:38 pm
by DavJans
I am running windows 7 with office 365 x64, and I'm running LC 8.1.9 upgrading LC might fix it but it breaks my application. the error message i get from outlook is "The command line argument is not valid. Verify the switch you are using."
Re: revMail syntax question
Posted: Tue Jan 29, 2019 7:15 pm
by DavJans
Installed 9.0.2 just to check. Outlook throws the same error.
Backup plan will work fine, Ill just create a distribution list email address

Re: revMail syntax question
Posted: Tue Jan 29, 2019 10:46 pm
by bwmilby
Did you try using a semicolon? I think the mail client is parsing that string.
Re: revMail syntax question
Posted: Sun Mar 03, 2019 3:01 am
by Jim Mac
Glomming onto to this thread. I have run into a similar problem with OutLook on Windows 7.
I want to have the user enter email addresses in a couple of fields and then use that to direct the email.
However, I have success using revMail ONLY when I hard code single email addresses enclosed in quotes (a "To" address and a separate "cc" address),
Trying to add two addresses for the "To" or "cc" entries gives me the "... Verify the switch you are using" Outlook error. Trying to use a variable or a custom property for the addresses fails also regardless of the "quote&" games I play.
The ONLY way I can get revMail and Outlook to play nice is to use hard coded addresses... not what I need.
Has anyone had this problem and, if so, how did you solve it?