Re: how to make desktop app send email?



Hi,

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 provides two things for this:
> > 
> > - evolution mailto:foo bar com?subject=Hello World&body=Good bye&
> > 
> > - a CORBA interface for the composer
> [snip]
> 
> Uhm, isn't there supposed to be mailto:// handler? This is very nice
> crash course, but it's completely evolution specific.
> AFAIR, way to open default handler is along the lines of 
> 
> g_spawn_command_line_async ("gnome-open mailto:foo bar", &err); 
> 
> right?

	Right idea, but:

  gnome_url_show ("mailto:foo bar", &err);

	would be better.

Cheers,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]