Hi Sharon,
Post by Eric AbrahamsenHere's what I've got for mail sending setup, what is your value of
message-send-mail-function?
(setq message-send-mail-function 'message-send-mail-with-sendmail)
(setq sendmail-program "msmtp")
Thanks Eric, here’s what I have -
(setq smtpmail-smtp-server "relay.plus.net")
(setq send-mail-function 'smtpmail-send-it)
(setq message-send-mail-function 'smtpmail-send-it)
(require 'smtpmail)
You may be making your life more complicated than necessary.
Must you use a separate program? Gnus communicates via smtp out of
the box. I suggest you look into X-Message-SMTP-Method and posting
styles.
Here's my posting style for inspiration. I have no other mention of
smtp in my init.el.
(setq gnus-posting-styles
'(((lambda ()
(rasmus/gnus-posting-style-identify ".*" `("To". ,(regexp-quote "mydom.com")) nil))
(GCC "nnimap+mail:mydomain/sent")
(X-Message-SMTP-Method "smtp ssl.mydomain.com 465 rasmus")
(signature (cookie
(expand-file-name "signatures" user-emacs-directory) "" ""))
(Face (gnus-random-face))
(eval (setq smtpmail-stream-type 'ssl)))
((lambda ()
(rasmus/gnus-posting-style-identify
"school" `("To" . ,(regexp-quote "***@school.com"))
(lambda () (rasmus/message-mailto-test (regexp-quote "school.com")))))
(address "***@school.com")
(Face (gnus-convert-png-to-face
(expand-file-name "school.png" gnus-face-directory)))
(Organization "school")
(GCC "nnimap+mail:school/sent")
(X-Message-SMTP-Method "smtp outlook.com 587 ***@school.com")
(signature "school")
(eval (setq smtpmail-stream-type nil)))
((lambda ()
(rasmus/gnus-posting-style-identify
(regexp-opt '("gmx" "gmane" "sunsite" "emacs"))
`("To" . ,(regexp-quote "***@gmx.us")) 'message-news-p))
(name "Rasmus")
(address "***@gmx.us")
(Organization nil)
(GCC "nnimap+mail:gmx/sent")
(X-Message-SMTP-Method "smtp mail.gmx.com 587 ***@gmx.us")
(eval (setq smtpmail-stream-type nil)))))
(setq smtpmail-auth-credentials "~/.authinfo")
BTW: Emacs can handle .authinfo.gpg out of the box.
Hope it helps,
Rasmus