Email Invoices
Derek Atkins
warlord at MIT.EDU
Mon Aug 16 18:06: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, and the user still has
> a reasonable work-around. Much as i'd like to have a slick 'email
> this' button in gnucash, I think that the gnome-desktop has not yet
> provided sufficient tools to make this possible.
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);
All that's left are the code to fill in the various variables.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list