Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
set recipientName to "Zuse"set recipientAddress to "sybunlongheng@gmail.com"set theSubject to "Subject" -- leave empty set theContent to "https://picsum.photos/200/300/?random"tell application "Mail" ##Create the message set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true} ##Set a recipient tell theMessage make new to recipient with properties {name:recipientName, address:recipientAddress} ##Send the Message send end tellend tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment