[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with emailing buffer
From: |
Bob Newell |
Subject: |
Re: help with emailing buffer |
Date: |
Tue, 30 Jan 2018 19:44:06 -1000 |
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).
(defun send-buffer-as-mail ()
(interactive)
(let ((buf (current-buffer)))
(compose-mail)
(save-excursion
(message-goto-body)
(insert-buffer-substring buf))))
Obviously, fill in the headers after doing this. I use this frequently
and it works for me.
--
Bob Newell
Honolulu, Hawai`i
Sent via Linux Mint 17.