Page 1 of 1

How to call Mail.App to quick write a mail?

Posted: Mon Dec 18, 2006 2:45 am
by ChineseAlexander
Thanks

Posted: Mon Dec 18, 2006 3:35 am
by Ryan Wilcox
There are two answers:

#1: Ignore Mail.app and send the message directly, using wxSMTP

#2: Figure out how to do it via AppleScript, then (call that AppleScript somehow)

Both of these are non-trivial. The first is non-trivial because, well, SMTP. The second is non-trivial because, well, AppleScript isn't necessarily an obvious language, and calling AppleScripts from wxWidgets would require some Dive Into the Mac OS "Carbon" routines yourself.

But, these should point you in the right direction.

Posted: Sun Jul 13, 2008 6:58 am
by 00061205
nice work.

Posted: Sun Jul 13, 2008 7:39 pm
by Auria
Try this :

Code: Select all

wxExecute( wxT("open mailto:[email protected]") );
calling AppleScripts from wxWidgets would require some Dive Into the Mac OS "Carbon" routines yourself.
Not actually true, you can call "osascript" through wxExecute