Sorry for writing a book. I felt I needed to clarify my issue.
Previously, I was using Indigo's BUILT-IN EMAIL and used the following AppleScript which worked fine.
property emailAddress : "emailname@yahoo.com"
property newline : ASCII character (10)
tell application "IndigoServer"
set rightNow to (time string of (current date))
set emailSubject to ""
set emailSubject to emailSubject & "Status: " & value of variable "doorsAllCurrentStatus"
set emailSubject to emailSubject & " @ " & rightNow
set emailSubject to emailSubject & " CT"
The resulting email was a succinct one line reply in the SUBJECT FIELD:
SUBJECT: Status is SECURE @ 12:37PM CT
But now converting to Python and now using BETTER EMAIL (and NOT using the Indigo's built-in email), I can insert variable's directly into the SUBJECT line.
Warning: I'm just starting to learn Python so explain it to me like i'm five.
I've had partial success with this in Better Email's SUBJECT field:
%%v:110544018%% %%v:413897097%% %%v:1562782016%% %%v:113832102%%
%%v:110544018%% = "Status is "
%%v:413897097%% = the variable "doorsAllCurrentStatus"
%%v:1562782016%% = "@"
%v:113832102%% = "CT"
Results in:
SUBJECT: Status is SECURE @ CT
How do I add the TIME as well in the SUBJECT line?
Again I'm just learning Python, but how would you code this.
General questions to clarify my weak understanding if you have the time:
1) I can't combine plain text and variables in one line? (Plain text has to be a variable as well?) Mine looks very messy.
2) Abandoning this approach using Better Email, Trying various solutions it appears that I can't use an Indigo Server Actions script that combines the details of both the SUBJECT and BODY because that would rely on Indigo's indigo.server.sendEmailTo command. This requires using Indigo's built-in email ? which is no longer configured as it was recommended to use either the built-in email or Better Email. I understand how this could create problems with polling a POP server and Indigo remembering which emails it has read. However, I'm wondering if I can use BOTH the built-in AND Better Email's SMTP configurations for whatever resulting ACTION works best. Wouldn't these separate SMTP's operate independently without causing problems?
3) I'm in a hole, should I stop digging?