From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Sending org buffer as mail? Date: Thu, 16 Dec 2010 06:22:12 -0700 Message-ID: <8739pxq29c.fsf@gmail.com> References: <4D09C7F2.8020806@gmail.com> <87sjxy168c.fsf@gmail.com> <87ei9i0zrw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=33953 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTDp2-0004Sm-1b for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 08:24:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTDp0-0007NI-QG for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 08:24:39 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:51435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTDp0-0007NE-Mb for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 08:24:38 -0500 Received: by gyg10 with SMTP id 10so1893205gyg.0 for ; Thu, 16 Dec 2010 05:24:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Oscar Carlsson Cc: Jeff Horn , emacs-orgmode@gnu.org Please look at org-mime in the contrib directory. It is designed for this exact need. Calling `org-mime-org-buffer-htmlize' from within an Org-mode document will export the document to html, and then place the html into a mail buffer with appropriate mime configuration, ensuring things like linked images are handled appropriately. See the worg page for more information (follow gnus instructions for simple mail use) http://orgmode.org/worg/org-contrib/org-mime.php Hope this helps -- Eric Oscar Carlsson writes: > Jeff Horn writes: > >> On Thu, Dec 16, 2010 at 3:17 AM, Oscar Carlsson >> wrote: >>> And then, I can send a org-file by attaching it to a mail in Emacs. Try >>> C-x m to start a new mail buffer, attach with C-c C-a and send with C-c >>> C-c. >> >> Does this attach the buffer or read it into the message? I thought the >> OP wanted to read-in a buffer. There should be a built-in function for >> that, but I've never used it. > > It would attach the file. But inserting the file would be trivial: =M-x > insert-file= > > But I have to admit that's not optimal - it would be better have a macro > (or such) that did it for you. Or properties in the org-file in > question. Or tell compose-mail that it should include marked text. > > > Oscar > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode