>>> "drc" == dick r chiang writes: > You make it hard to help you because my-gnus-summary-post-news is undefined. Ah, my bad, that was just a small modification of the vanilla function, but you are right this is stupid to use it in that context. > Try replacing `src-buffer` with `src-buf`. Thanks! That worked, I played around with too many changes so actually this works (defun my-attach-this-buffer () "Send the whole buffer, funny to note that such a function does not exist." (interactive) (let ((src-buf (buffer-file-name (current-buffer)))) (gnus-summary-post-news) (mail-text) (mml-attach-buffer src-buf "application/octet-stream" nil nil) (message-goto-to))) I am not sure, whether to use application/octet-stream to be on the save side or to use "plain/text" since most of my files I send this way will be text files. Thanks again