Re: how to make desktop app send email?

Wait, are you trying to actually send the mail, or just open a partially
filled out mail window for the user to send mail?

If you want to actually send the mail, just popen() a pipe to the
sendmail command and grab a convenient MIME-encoding library to do

On Fri, 2004-07-16 at 09:59 -0500, Linas Vepstas wrote:
> On Fri, Jul 16, 2004 at 04:44:54PM +0200, Maciej Katafiasz was heard to remark:
> > W li?cie z pi?, 16-07-2004, godz. 16:17, Linas Vepstas pisze: 
> > > 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).  
> > 
> > That's exactly why use gnome_url_show() in GNOME. This way you don't
> > have to find out anything, but whatever user has set in preferred
> > applications panel will be used instead.
> ...
> > Not sure what you mean, but you seem to be saying that using
> > gnome_url_show() for launching preferred handler is not good enough and
> > instead you need to write hundreds LOC to find preferred handler?
> Sorry, the way that function was introduced in this thread made me 
> think it was not yet implemented ... if it already exists, and already 
> works, that's excellent!
> I assume that "mailto://foo bar?Body=this%20is%20how%to%20include%0a%0d
> body%20text?%0a%0d"  is the correct way to include body text, for
> both iso8859 and unicode encodings?   How do I do attachements?  
> Some (but not all) of the things I want to email are HTML pages, 
> which I think will work better as attachments, rather than as inline
> body text .... 
> --linas

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