Skip to content

Instantly share code, notes, and snippets.

@bunlongheng
Created April 11, 2019 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bunlongheng/f52d7adb4e6a8c57b7f7da07681e23c0 to your computer and use it in GitHub Desktop.
Save bunlongheng/f52d7adb4e6a8c57b7f7da07681e23c0 to your computer and use it in GitHub Desktop.
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 tell end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment