Using variables with sendemail

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.

1 Like

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
1 Like

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.

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.

1 Like

Useful information. Thank you!