I have been able to get the mailto protocol to work in an IPAQ with Win Mobile 5 and FlashLite 2.1. I'm using AS 2.
However, I can't figure out how to add a variable into the body. The variable,
deviceID, is gotten onLoad by fscommand2, status = fscommand2("GetDeviceID", "deviceID"), so deviceID is populated by a value.
The challenge would be to write a 'mailto' script that includes the deviceID in the email's body. I've tried several scripts for adding deviceID, but none work.
GetURL("mailto:firstname.lastname@example.org?subject=Feed back&body="deviceID"") creates an error (too many "?) and using parentheses does not help. GetURL("mailto:email@example.com?subject=Feed back&body=<deviceID>") also doesn't add the value of the deviceID variable, just puts <deviceID> into the message's body.
Is this possible: populating the email message's body with the values of one or more variables?
If yes, I would much appreciate any scripting syntax suggestion to accomplish this. I'm stuck.
You are essentially building a string, and variables have to be added to the string outside of quotes to have their values placed in the string
For instance, suppose you needed to include additional string info after it....
Also note the lowercase g in getURL, in case you are actually using the way you show it with the uppercase.
Thanks much! That worked.
Setting it up as a string was just what was needed.