Function: mail-add-attachment

mail-add-attachment is an interactive and byte-compiled function defined in sendmail.el.gz.

Signature

(mail-add-attachment FILE)

Documentation

Add FILE as a MIME attachment to the end of the mail message being composed.

View in manual

Probably introduced at or before Emacs version 24.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mail/sendmail.el.gz
(defun mail-add-attachment (file)
  "Add FILE as a MIME attachment to the end of the mail message being composed."
  (interactive "fAttach file: ")
  (mml-attach-file file
		   (or (mm-default-file-type file)
		       "application/octet-stream")
		   nil)
  (setq mail-encode-mml t))