message-mode, you can re-use many of its facilities. See (message)Insertion Variables.
mu4e-compose-keep-self-ccto t in your configuration.
mu4e-action-capture-message(i.e., a c in the headers view) to ’capture’ the to-be-attached message, then when editing the message, use M-x mu4e-compose-attach-captured-message.
emacs’ MIME-support – check the Attachments-menu while composing a message. Also see Signing and encrypting.
(setq message-kill-buffer-on-exit t)
(require 'smtpmail-async) (setq send-mail-function 'async-smtpmail-send-it message-send-mail-function 'async-smtpmail-send-it)
With this, messages are sent using background emacs-instance.
A word of warning though, this tends to not be as reliable as sending the message in the normal, synchronous fashion, and people have reported silent failures, where mail sending fails for some reason without any indication of that.
You can check the progress of the background by checking the *Messages*-buffer, which should show something like:
Delivering message to "William Shakespeare" <firstname.lastname@example.org>... Mark set Saving file /home/djcb/Maildir/sent/cur/20130706-044350-darklady:2,S... Wrote /home/djcb/Maildir/sent/cur/20130706-044350-darklady:2,S Sending...done
The first and final messages are the most important, and there may be considerable time between them, depending on the size of the message.
Here’s an explanatory blog post which also shows why this is a desirable feature: https://mathiasbynens.be/notes/gmail-plain-text (if you don’t have it, your mails mostly look quite bad especially on mobile devices) and here’s the RFC with all the details: http://www.ietf.org/rfc/rfc2646.txt.
Since version 0.9.17, mu4e send emails with format=flowed by setting
(setq mu4e-compose-format-flowed t)
in your Emacs init file (~/.emacs or ~/.emacs.d/init.el). The transformation of your message into the proper format is done at the time of sending. In order to happen properly, you should write each paragraph of your message of as a long line (i.e. without carriage return). If you introduce unwanted newlines in your paragraph, use M-q to reformat it as a single line.
If you want to send the message with paragraphs on single lines but without
format=flowed (because, say, the receiver does not understand the latter as it is
the case for Google or Github), use M-x use-hard-newlines (to turn
use-hard-newlines off) or uncheck the box format=flowed in the
Text menu when composing a message.