revMail syntax question

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

revMail syntax question

Post by DavJans » Mon Jan 28, 2019 5:02 pm

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.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: revMail syntax question

Post by bogs » Mon Jan 28, 2019 5:30 pm

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 ?
Image

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: revMail syntax question

Post by Klaus » Mon Jan 28, 2019 5:38 pm

Mr. Bogs,

the second "item" in the syntax is the CC address! 8)
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

DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

Re: revMail syntax question

Post by DavJans » Mon Jan 28, 2019 5:41 pm

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.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: revMail syntax question

Post by Klaus » Mon Jan 28, 2019 5:46 pm

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...
Attachments
revmail3addresses.jpg

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: revMail syntax question

Post by bogs » Mon Jan 28, 2019 11:15 pm

My bad, carry on! :D
Image

DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

Re: revMail syntax question

Post by DavJans » Tue Jan 29, 2019 6:38 pm

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."
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

DavJans
Posts: 270
Joined: Thu Dec 12, 2013 4:21 pm
Location: Spokane, WA USA

Re: revMail syntax question

Post by DavJans » Tue Jan 29, 2019 7:15 pm

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 :)
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: revMail syntax question

Post by bwmilby » Tue Jan 29, 2019 10:46 pm

Did you try using a semicolon? I think the mail client is parsing that string.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

Jim Mac
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 54
Joined: Wed Jun 28, 2006 9:22 pm

Re: revMail syntax question

Post by Jim Mac » Sun Mar 03, 2019 3:01 am

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?

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”