Permalink
Browse files

blah

  • Loading branch information...
1 parent 6ba5c39 commit 06d50bd9b409ebad5a4e4995e901b97b0dba6ee9 @ccgus committed Oct 24, 2013
Showing with 0 additions and 22 deletions.
  1. +0 −22 example_scripts/Mail.jstalk
@@ -1,22 +0,0 @@
-var mail = SBApplication.application_("Mail");
-
-var to = "someone@somewhere.com";
-var from = "someone@somewhere.com";
-var subject = "This is the subject.";
-var content = "This is the message content.\n\nIsn't it great?";
-
-var emailMessageProps = {subject:subject, content:content};
-var emailMessage = mail.classForScriptingClass_("outgoing message").alloc().initWithProperties_(emailMessageProps);
-
-mail.outgoingMessages().addObject_(emailMessage);
-
-emailMessage.sender = from;
-emailMessage.visible = true;
-
-theRecipientProps = {address:from};
-theRecipient = mail.classForScriptingClass_("to recipient").alloc().initWithProperties_(theRecipientProps);
-
-emailMessage.toRecipients().addObject_(theRecipient);
-
-emailMessage.send();
-

0 comments on commit 06d50bd

Please sign in to comment.