79388680

Date: 2025-01-26 14:35:58
Score: 1
Natty:
Report link

It took me a while. I have this worked out. I define the sender. I also define the main recipient + 3 cc recipients.

set the_subject to "Update"
set the_body to "Hi, Luciano. 

All set:
… on the server.

thx. 

-lucca."

tell application "Mail"


set new_message to make new outgoing message ¬
    with properties {sender:"MyName  <[email protected]>", 
subject:the_subject, content:the_body, visible:true}


tell new_message
    -- Add the recipients:
    make new to recipient ¬
        at end of to recipients ¬
        with properties {address:"[email protected]"}
    make new cc recipient ¬
        at end of cc recipients ¬
        with properties {address:"[email protected]"}
    make new cc recipient ¬
        at end of cc recipients ¬
        with properties {address:"[email protected]"}
    make new cc recipient ¬
        at end of cc recipients ¬
        with properties {address:"[email protected]"}
    
    end tell
    end tell
Reasons:
  • Blacklisted phrase (1): thx
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Paul