help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with emailing buffer


From: Emanuel Berg
Subject: Re: help with emailing buffer
Date: Wed, 31 Jan 2018 14:51:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Bob Newell wrote:

> This or something like it was posted online
> some while ago (so it's not my original work
> by any means and I apologize for not knowing
> whom to credit).

But you don't send buffers that often. When you
do it, you might as well just do `compose-mail'
and then yank the buffer there.

With programming, or "From Lisp", you can send
an arbitrary mail like this:

(defun send-mail-to (to subject body)
  (gnus-post-news 'post "")
  (message-goto-to)       (insert to)
  (message-goto-subject)  (insert subject)
  (message-goto-body)     (insert body)
  (message-send-and-exit) )

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]