From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: help with emailing buffer Date: Wed, 31 Jan 2018 14:51:49 +0100 Organization: Aioe.org NNTP Server Message-ID: <868tce87be.fsf@zoho.com> References: <874ln3wqa1.fsf@gmail.com> <20180130214137752736235@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517406837 13180 195.159.176.226 (31 Jan 2018 13:53:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2018 13:53:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 31 14:53:52 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egspM-0001qV-3r for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jan 2018 14:53:28 +0100 Original-Received: from localhost ([::1]:33911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egsrM-0002XF-Ul for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jan 2018 08:55:33 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: VFF8n9P1H/v9pfNWKwEKwA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Mail-Copies-To: never X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:6LBEgcjaYSuzPHJ5Vsj50LcQEu0= Original-Xref: usenet.stanford.edu gnu.emacs.help:221773 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115890 Archived-At: 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