- Joined
- Feb 13, 2021
- Messages
- 4
- Reaction score
- 0
tell application "Microsoft Outlook"
set theContent to "Mail Content etc."
set theMessage to make new outgoing message with properties {subject("Month ") & (do shell script "date '+%m'")), content:theContent}
make new recipient with properties {email address:{address:"(e-mail address removed)"}} at end of to recipients of theMessage
make new recipient with properties {email address:{address:"(e-mail address removed)"}} at end of cc recipients of theMessage
open theMessage
end tell
This script works fine. I like to add a line that picks one of several pop accounts I have so it sends it form that one.
Ideally it selects that account, and the resulting mail has the signature in it that I have stored under that address. Presently it always selects my main account and the signature related to it, but that is not the account I like to send from.
I am stuck here and do not know how to do this, love to hear your suggestions.
set theContent to "Mail Content etc."
set theMessage to make new outgoing message with properties {subject("Month ") & (do shell script "date '+%m'")), content:theContent}
make new recipient with properties {email address:{address:"(e-mail address removed)"}} at end of to recipients of theMessage
make new recipient with properties {email address:{address:"(e-mail address removed)"}} at end of cc recipients of theMessage
open theMessage
end tell
This script works fine. I like to add a line that picks one of several pop accounts I have so it sends it form that one.
Ideally it selects that account, and the resulting mail has the signature in it that I have stored under that address. Presently it always selects my main account and the signature related to it, but that is not the account I like to send from.
I am stuck here and do not know how to do this, love to hear your suggestions.