Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 23 lines (14 sloc) 0.73 kB
26f3bde @ccgus Rewrote some of the examples, without using the []'s. I just don't w…
authored
1 var mail = SBApplication.application_("Mail");
ee99867 @ccgus oh geeze
authored
2
3 var to = "someone@somewhere.com";
4 var from = "someone@somewhere.com";
5 var subject = "This is the subject.";
6 var content = "This is the message content.\n\nIsn't it great?";
7
8 var emailMessageProps = {subject:subject, content:content};
26f3bde @ccgus Rewrote some of the examples, without using the []'s. I just don't w…
authored
9 var emailMessage = mail.classForScriptingClass_("outgoing message").alloc().initWithProperties_(emailMessageProps);
ee99867 @ccgus oh geeze
authored
10
26f3bde @ccgus Rewrote some of the examples, without using the []'s. I just don't w…
authored
11 mail.outgoingMessages().addObject_(emailMessage);
ee99867 @ccgus oh geeze
authored
12
13 emailMessage.sender = from;
14 emailMessage.visible = true;
15
16 theRecipientProps = {address:from};
26f3bde @ccgus Rewrote some of the examples, without using the []'s. I just don't w…
authored
17 theRecipient = mail.classForScriptingClass_("to recipient").alloc().initWithProperties_(theRecipientProps);
ee99867 @ccgus oh geeze
authored
18
26f3bde @ccgus Rewrote some of the examples, without using the []'s. I just don't w…
authored
19 emailMessage.toRecipients().addObject_(theRecipient);
ee99867 @ccgus oh geeze
authored
20
26f3bde @ccgus Rewrote some of the examples, without using the []'s. I just don't w…
authored
21 emailMessage.send();
ee99867 @ccgus oh geeze
authored
22
Something went wrong with that request. Please try again.