Email Invoices

Glen Ditchfield gjditchfield at acm.org
Wed Aug 18 10:10:57 EDT 2004


> linas at linas.org (Linas Vepstas) writes:
> Yes, exactly.  At this time, it would still be a lot of work to
> make gnucash auto-launch an email client

On Monday 16 August 2004 17:06, Derek Atkins wrote:
> Here ya go:
> mailout = popen("/usr/lib/sendmail -bt");
> fprintf(mailout, "From: GnuCash Invoice Mailer <%s>\n", mail_from);
> fprintf(mailout, "To: %s <%s>\n", cust_contact, cust_email);
> fprintf(mailout, "Subject: GnuCash Invoice for %s dated %s\n", cust_name,
> date); fprintf(mailout, "%s\n", mime_headers);
> fprintf(mailout, "\n");
> fprintf(mailout, "%s\n", text_intro);
> fprintf(mailout, "%s\n", mime_sep);
> fprintf(mailout, "%s\n", pdf_content);
> fprintf(mailout, "%s\n", mime_ending);
> fclose(mailout);

I use KMail.  I would just want GnuCash to execute "kmail --composer --attach 
[path to file containing invoice] [recipient address]".  That would bring up 
a KMail window where I would type my subject, cover note, CCs, BCCs, and 
whatnot.  If I had to set a preference to "kmail --composer --attach %0 %1" 
somewhere, that would be just fine.


More information about the gnucash-devel mailing list