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