Launch Default E-mail?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Ksmith22
I live to help wx-kind
I live to help wx-kind
Posts: 199
Joined: Mon Nov 21, 2005 4:34 pm

Launch Default E-mail?

Post by Ksmith22 » Fri Apr 07, 2006 6:30 pm

I didn't see this, but maybe I missed it. Is there a function like wxLaunchDefaultBrowser() for e-mail?

For example, if I type:
mailto:[email protected] ([email protected] - had to use the [email] tag here)

And click that link, it opens up the default e-mail program with a message to that person (in IE anyways). Does wxWidgets have something similar to that?

P.S. - I did try wxLaunchDefaultBrowser("mailto: ...") but it didn't work.

protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol » Fri Apr 07, 2006 8:53 pm

use ::wxExecute || ::wxShell

Hope that helps.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!

goeba
Earned a small fee
Earned a small fee
Posts: 21
Joined: Tue May 17, 2005 8:13 pm

Post by goeba » Sat Apr 08, 2006 8:22 am

Hi,

in the contrib folder there is "net". It has email-capabilities. I once used it, it worked ok.

(it does start the default-mail-client).

Regards,

Andreas

Post Reply