Created
April 11, 2019 14:43
-
-
Save bunlongheng/f52d7adb4e6a8c57b7f7da07681e23c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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