From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: email ui choices? Date: Tue, 14 Jul 2015 18:51:42 +0800 Message-ID: <87lhejvwox.fsf@ericabrahamsen.net> References: <20150714084809.GB11584@unser.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZExoh-0003os-V3 for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 06:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZExoc-0007j4-W8 for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 06:52:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:34943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZExoc-0007hX-Pv for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 06:51:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZExoY-0005Gk-Dz for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 12:51:54 +0200 Received: from 222.128.167.57 ([222.128.167.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jul 2015 12:51:54 +0200 Received: from eric by 222.128.167.57 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jul 2015 12:51:54 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Juergen Christoffel writes: > On Mon, Jul 13, 2015 at 08:16:29PM -0400, Matt Price wrote: >> [...] >>I want to fill out this form, key in a command, and have emacs prompt me >>for an email (or look the email up somewhere?) and generate a mail buffer >>with this subtree as its contents; optionally attach a .doc or .pdf >>attachement; and send the htmlized buffer for me, saving the sent mail >>either to my IMAP Sent folder or my local mbox Sent folder. > > Matt, > > you could either use Emacs' RMAIL-Mode to do this. Or you could try mutt > (which is the perfect companion to things like org-mode, IMO) als your > mailer. > >>It would be nice if it had access to my contacts, either via GMail or >>through thunderbbird (those are synced, I think). > > I don't know about RMAIL and IMAP/Gmail (as I switched from RMAIL to mutt > years ago) but you should find hwotos for setting up mutt in conjuntion > with Gmail with Google. I wonder if it's even necessary to have *any* sort of MUA set up in Emacs, if all you're doing is sending email? Many email programs paper over the distinction between sending and receiving/reading email, but I think the Emacs-based tools preserve that distinction pretty well. Message-mode is built in, and I use it in conjunction with the msmtp program, like so: (setq message-send-mail-function 'message-send-mail-with-sendmail) (setq sendmail-program "msmtp") Check the docstring for the *variable* `message-send-mail-function', and that should get you started. If you're only using a single account for sending, that should be significantly simpler. Look at `user-mail-address' and all that. Then just call `compose-mail'! To answer the original question, the org-mime library in Org's contrib/lisp directory is probably what you want for htmlizing buffers and sending them as email. Hope that helps, Eric