create and send an email with applescript

/ Published in: AppleScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. tell application "Mail"
  2. set theNewMessage to make new outgoing message with properties {subject:"Subject text", content:"Content text", visible:true}
  3. tell theNewMessage
  4. make new to recipient at end of to recipients with properties {address:"email address"}
  5. send
  6. end tell
  7. end tell


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.