From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oscar Carlsson Subject: Re: Sending org buffer as mail? Date: Thu, 16 Dec 2010 09:17:55 +0100 Message-ID: <87sjxy168c.fsf@gmail.com> References: <4D09C7F2.8020806@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=58381 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PT94J-0002rs-QC for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 03:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PT94H-0008WG-W0 for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 03:20:07 -0500 Received: from lo.gmane.org ([80.91.229.12]:39145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PT94H-0008Vx-QK for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 03:20:05 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PT94G-0000Tu-QO for emacs-orgmode@gnu.org; Thu, 16 Dec 2010 09:20:04 +0100 Received: from b-76-108.eduroam.liu.se ([130.236.76.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Dec 2010 09:20:04 +0100 Received: from oscar.carlsson by b-76-108.eduroam.liu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Dec 2010 09:20:04 +0100 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: emacs-orgmode@gnu.org Rainer M Krug writes: > Hi > > From time to time, I would like to mail an .org buffer. At the moment, I > copy it into thunderbird and mail it - this is quite awkward. > > I assume, there must be a better way of doing this from within emacs?. > > I do not intend to switch to gnus or similar for reading my email, I > just want to be able to send, from time to time, an .org buffer as an email > > Cheers, > > Rainer You don't have to switch to GNUS in order to do it, but you might have to configure Emacs's built in smtp-support. This is how I do it: #+BEGIN_SRC lisp (setq message-send-mail-function 'smtpmail-send-it smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)) smtpmail-auth-credentials "~/.authinfo" smtpmail-default-smtp-server "smtp.gmail.com" smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 587) #+END_SRC This is obviously for GMail. In my ~/.authinfo, I input the following: #+BEGIN_SRC machine smtp.gmail.com login user.name@gmail.com password p4ssw0rd #+END_SRC 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.