I followed this guide to set up IMAP email with Emacs, mu
, and mu4e
. I can pull email and view it in mu4e
alright, but I can't seem to send email. I press C
for Compose, edit the email, then C-c C-c
to send, and I get Process smtpmail not running
in the mini-buffer window.
My SMTP configuration in ~/.emacs
is:
(setq
message-send-mail-function 'smtpmail-send-it
user-mail-address "[email protected]"
smtpmail-default-smtp-server "smtp.office365.com"
smtpmail-smtp-server "smtp.office365.com"
smtp-mail-service 587
smtpmail-local-domain "[email protected]")
I haven't found any pointers to this problem. Am I missing something obvious?
message-send-mail-function 'smtpmail-send-it
?smtpmail-stream-type
value 'starttls or other?Sending failed: ... Authentication unsuccessful [domain.domain.PROD.OUTLOOK.COM] in response to [random characters]
. I tried setting(setq smtpmail-auth-credentials '(("smtp.office365.com" 25 "[email protected]" "password")))
as in this EmacsWiki and it still prompts me for the password. It does the same with 587 instead of 25. How can I set the credentials?