Hi Darren,
Here's a working example. It creates a new email message and attaches two
files to it.
tell application "Mailplane"
set m to make new outgoing message
tell m
set r to make new to recipient at end
tell r
set address to "[email protected]"
set name to "Ruben"
end tell
set r to make new to recipient at end
tell r
set address to "[email protected]"
set name to "Monique"
end tell
set subject to "test subject"
set f to "Macintosh HD:Users:ruben:Desktop:logo.gif.png"
set att to make new mail attachment with properties {path:f}
make new mail attachment with properties {path:"Macintosh
HD:Users:ruben:Desktop:logo.gif.png"}
end tell
compose m
att
end tell
On Sat, Feb 21, 2009 at 12:15 AM, Darren Mahaffy <[email protected]> wrote:
>
> Is it possible to set who the sender is in a new, scripted message?
>
> I see it in the Mailplane dictionary, but perhaps my syntax is wrong?
>
> Would like to be able to send a message from an account other than my
> default (as set in gmail, have two others that I can send from).
>
> tell application "Mailplane"
> set m to make new outgoing message
> tell m
> set sender to "[email protected]" --doesn't work, tried in
> different places in this script, too
> set r to make new to recipient at end
> tell r
> set address to "[email protected]"
> set name to "Dude"
> end tell
> set subject to "Testing"
> set content to "Hi Dude-" & return & return & "This is a
> test
> email." & return & return & "Cordially," & return & return "The
> Management"
> end tell
> compose m
> end tell
>
> When I run this script, everything goes well, but the sender is not
> "[email protected]" (fictitious addy, fyi), rather it is the default
> I set in Gmail account settings.
>
> Thanks for any help.
> Darren
>
> >
>
--
Ruben
http://mailplaneapp.com/blog
http://www.twitter.com/Mailplane
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"mailplaneapp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mailplaneapp?hl=en
-~----------~----~----~----~------~----~------~--~---