all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oscar Carlsson <oscar.carlsson@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Sending org buffer as mail?
Date: Thu, 16 Dec 2010 09:17:55 +0100	[thread overview]
Message-ID: <87sjxy168c.fsf@gmail.com> (raw)
In-Reply-To: 4D09C7F2.8020806@gmail.com

Rainer M Krug <r.m.krug@gmail.com> 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. 

  reply	other threads:[~2010-12-16  8:20 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16  8:04 Sending org buffer as mail? Rainer M Krug
2010-12-16  8:17 ` Oscar Carlsson [this message]
2010-12-16  8:25   ` Jeff Horn
2010-12-16  8:54     ` Rainer M Krug
2010-12-16 10:38       ` Oscar Carlsson
2010-12-16 10:41         ` Rainer M Krug
2010-12-16 12:38           ` Rainer M Krug
2010-12-16 13:49             ` Oscar Carlsson
2010-12-16 21:27             ` Sebastian Rose
2010-12-16 21:34             ` Sebastian Rose
2010-12-17  1:06       ` Matt Lundin
2010-12-17  1:27         ` Eric Schulte
2010-12-17  6:48           ` Eric Schulte
2010-12-17  8:57             ` Rainer M Krug
2010-12-17 10:02               ` Eric Schulte
2010-12-17 11:54           ` Matt Lundin
2010-12-17 21:25             ` Eric Schulte
2010-12-19 12:21               ` Niels Giesen
2010-12-19 20:47                 ` Samuel Wales
2010-12-19 23:39                 ` Eric Schulte
2010-12-21 20:55                   ` Niels Giesen
2010-12-27 14:53                     ` Eric Schulte
2010-12-27 18:11                       ` Niels Giesen
2010-12-28  3:58                         ` Eric Schulte
2010-12-27 17:53                     ` Samuel Wales
2010-12-17 14:47           ` Jean-Marie Gaillourdet
2010-12-17 21:26             ` Eric Schulte
2010-12-18 23:26               ` Ethan Ligon
2010-12-20  1:46                 ` Eric Schulte
2010-12-20 10:20                   ` Sébastien Vauban
2010-12-16 10:37     ` Oscar Carlsson
2010-12-16 13:22       ` Eric Schulte
2010-12-16 13:39         ` Rainer M Krug
2010-12-16 14:45         ` Sébastien Vauban
2010-12-16 14:56           ` Eric Schulte
2010-12-16 16:19             ` Sébastien Vauban
2010-12-16 18:20               ` Eric Schulte
2010-12-16 18:29       ` Jeff Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjxy168c.fsf@gmail.com \
    --to=oscar.carlsson@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.