From: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: email ui choices?
Date: Tue, 14 Jul 2015 07:10:20 -0400 [thread overview]
Message-ID: <CAN_Dec8mcpO8TSAkueu2pmADr7+vxYr9sUU=B1MHL4+6R6vn6w@mail.gmail.com> (raw)
In-Reply-To: <87lhejvwox.fsf@ericabrahamsen.net>
[-- Attachment #1: Type: text/plain, Size: 2092 bytes --]
On Tue, Jul 14, 2015 at 6:51 AM, Eric Abrahamsen <eric@ericabrahamsen.net>
wrote:
> Juergen Christoffel <jc.org14@cynix.net> writes:
>
>
> I wonder if it's even necessary to have *any* sort of MUA set up in
> Emacs, if all you're doing is sending email? Many email programs paper
> over the distinction between sending and receiving/reading email, but I
> think the Emacs-based tools preserve that distinction pretty well.
>
I'm wondering that too now!
>
> Message-mode is built in, and I use it in conjunction with the msmtp
> program, like so:
>
> (setq message-send-mail-function 'message-send-mail-with-sendmail)
> (setq sendmail-program "msmtp")
>
thank you for the pointer to msmtp
>
> Check the docstring for the *variable* `message-send-mail-function', and
> that should get you started. If you're only using a single account for
> sending, that should be significantly simpler. Look at
> `user-mail-address' and all that.
>
> Then just call `compose-mail'!
>
> To answer the original question, the org-mime library in Org's
> contrib/lisp directory is probably what you want for htmlizing buffers
> and sending them as email.
>
>
I've made some progress on this but it's not quite perfect. I have this
function:
(defun mime-send-mail ()
"org-mime-subtree and HTMLize"
(interactive)
(org-mark-subtree)
;; wish I could get the PARENT headline here!
;; then figure out how to set subject to that headline!
(let ((subject (nth 4 (org-heading-components))))
(org-mime-subtree)
(insert "\nBest,\nMP.\n")
(org-mime-htmlize) ;; had to redefine so it could be called
non-interactively
(command-execute 'mml-attach-file)
(message-goto-to))
)
I've been thinking about it, and I would love to just have a link to the
student paper within org itself, and have the attachment added
automatically after org-mime-htmlize runs. I'm not sure exactly how to do
that but if I figure it out I will let the group know. I vaguely recall
I've seen other people describe such systems so I would appreciate guidance
if it's available.
Thanks again!
m
> Hope that helps,
> Eric
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 3320 bytes --]
next prev parent reply other threads:[~2015-07-14 11:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 0:16 email ui choices? Matt Price
2015-07-14 8:48 ` Juergen Christoffel
2015-07-14 10:51 ` Eric Abrahamsen
2015-07-14 11:10 ` Matt Price [this message]
2015-07-14 11:27 ` Eric Abrahamsen
2015-07-14 20:51 ` Matt Price
2015-07-15 1:46 ` Eric Abrahamsen
2015-07-14 22:29 ` Juergen Christoffel
2015-07-14 23:22 ` Matt Price
2015-07-14 11:35 ` Rasmus
2015-07-14 11:41 ` Eric Abrahamsen
2015-07-14 12:01 ` Rasmus
2015-07-14 14:47 ` Jorge A. Alfaro-Murillo
2015-07-15 1:14 ` Eric Abrahamsen
2015-07-15 8:56 ` Rasmus
2015-07-15 9:27 ` Eric Abrahamsen
2015-07-15 9:37 ` Rasmus
2015-07-16 3:27 ` Eric Abrahamsen
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN_Dec8mcpO8TSAkueu2pmADr7+vxYr9sUU=B1MHL4+6R6vn6w@mail.gmail.com' \
--to=moptop99@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).