I can fetch imap email from outlook.com. However, cannot send email through outlook.com.
My `gnus.el' excerpt: ``` ;; Outlook imap (add-to-list 'gnus-secondary-select-methods '(nnimap "outlook" (nnimap-address "imap-mail.outlook.com") (nnimap-server-port 993) (nnimap-stream ssl))) ;; Outlook smtp (setq send-mail-function 'smtpmail-send-it message-send-mail-function 'smtpmail-send-it smtpmail-default-smtp-server "smtp-mail.outlook.com" smtpmail-smtp-server "smtp-mail.outlook.com" smtpmail-stream-type 'starttls ;; or `ssl' smtpmail-smtp-service 587) ;; smtp debug (setq smtpmail-debug-info t smtpmail-debug-verb t) ;; starttls (setq starttls-use-gnutls t starttls-gnutls-program "gnutls-cli" starttls-extra-arguments nil) ;; authinfo (setq nntp-authinfo-file (nnheader-concat gnus-home-directory "authinfo.gpg") nnimap-authinfo-file (nnheader-concat gnus-home-directory "authinfo.gpg") smtpmail-auth-credentials (nnheader-concat gnus-home-directory "authinfo.gpg") smtpmail-starttls-credentials (nnheader-concat gnus-home-directory "authinfo.gpg")) ``` My `autinfo.gpg': ``` machine imap-mail.outlook.com login em...@outlook.com password mypass port 993 machine smtp-mail.outlook.com login em...@outlook.com password mypass port 587 ``` Error message: If smtpmail-stream-type to `starttls', it looks: ---------- smtpmail-stream-type starttls -------- Sending via mail... gnutls.c: [0] (Emacs) fatal error: The TLS connection was non-properly terminated. 550 5.7.3 Requested action aborted; user not authenticated smtpmail-send-command: Process smtpmail not running Quit -------------------------------------------------- If smtpmail-stream-type to `ssl', it looks: ------ smtpmail-stream-type ssl ---------------- Sending via mail... gnutls.c: [0] (Emacs) fatal error: An unexpected TLS packet was received. gnutls.el: (err=[-15] An unexpected TLS packet was received.) boot: (:priority NORMAL :hostname smtp-mail.outlook.com :loglevel 0 :min-prime-bits 256 :trustfiles (/etc/ssl/certs/ca-certificates.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil) gnutls-negotiate: GnuTLS error: #<process smtpmail>, -15 Quit ------------------------------------------------- >From the outlook.com help menu, I can find: ``` Server name: smtp-mail.outlook.com Port: 587 Encryption method: TLS ``` So could any guy help? -- Hello, world! _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english