Using variables with sendemail


#1

Is it possible to use variables in the options portion of the sendemail command? It does not seem to work. In the example below

sendemail {
from=sjones@gmail.com
to=VariableHoldingUserEmailAddr
bcc=gmail@autoplotvw.com
subject=“Email subject here”
},EmailBody

the string “VariableHoldingUserEmailAddr” gets put in Apple Mail’s “To:” field.


#2

You need to get the variable outside the quotes, so that the variable’s value will be used, and not its name.

sendemail {
from=sjones@gmail.com
to=}+VariableHoldingUserEmailAddr+{
bcc=gmail@autoplotvw.com
subject=“Email subject here”
},EmailBody

#3

Dave,
Thanks, works just as intended. I didn’t realize that the “{}” were functioning as quotes, but I haven’t viewed enough of the videos.
Thanks again.


#4

Panorama has several characters that can serve as quotes. If some are in the text to be quoted, you can use one of the others to quote the text. There is an article in the Help file about them.