I have the following in my init.el:
(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-stream-type 'starttls
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg")
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587)
.authinfo decrypts fine and contains:
machine smtp.gmail.com login ***1 password ***2 port 465
Where ***1 and ***2 are my username and password respectively.
But upon sending mail from mu4e I am still prompted for credentials.
If I enter the credentials at the prompt sending works.
What am I missing?