Re: how to make desktop app send email?
- From: Mark McLoughlin <markmc redhat com>
- To: Linas Vepstas <linas linas org>
- Cc: Maciej Katafiasz <mnews22 wp pl>, Federico Mena Quintero <federico ximian com>, Desktop Devel <desktop-devel-list gnome org>
- Subject: Re: how to make desktop app send email?
- Date: Fri, 16 Jul 2004 15:41:11 +0100
On Fri, 2004-07-16 at 15:17, Linas Vepstas wrote:
> On Fri, Jul 16, 2004 at 06:58:44AM +0100, Mark McLoughlin was heard to remark:
> > On Fri, 2004-07-16 at 03:49, Maciej Katafiasz wrote:
> > > W li??cie z pi??, 16-07-2004, godz. 03:55, Federico Mena Quintero pisze:
> > > > On Thu, 2004-07-15 at 12:58 -0500, Linas Vepstas wrote:
> > > >
> > > > > I have a desktop app ("gnomtime", actually, gttr.sourceforge.net) with
> > > > > several free-text areas in it. It like to be able to add a menu item
> > > > > that says "email this". Clicking on the menu would start the user's
> > > > > favorite email client, push the text into it, and let them complete
> > > > > the addressing from there, etc.
> > > > >
> > > > > What's the best way of doing this?
> > > >
> > > > - evolution mailto:foo bar com?subject=Hello World&body=Good bye&
> > > > - a CORBA interface for the composer
> > >
> > > but it's completely evolution specific.
> > >
> > > g_spawn_command_line_async ("gnome-open mailto:foo bar", &err);
> > gnome_url_show ("mailto:foo bar", &err);
> > would be better.
> The hard part to find out what the user's favorite MUA was, from
> the desktop registry/gconf entry/KDE config-whatever that would
> hold this info. (That's why this is a desktop question).
The handler launcher is based on the user's preference. See
] [Thread Prev