这里是我的.emacs:
代码: 全选
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(mail-user-agent (quote gnus-user-agent))
'(read-mail-command (quote gnus))
'(smtpmail-auth-credentials (quote (("smtp.gmail.com" 587 "5451vs5451" nil))))
'(smtpmail-debug-info t)
'(smtpmail-default-smtp-server "smtp.gmail.com")
'(smtpmail-smtp-server "smtp.gmail.com")
'(smtpmail-smtp-service 587)
'(smtpmail-starttls-credentials (quote (("smtp.gmail.com" 587 "" ""))))
'(starttls-use-gnutls t)
'(user-mail-address "[email protected]"))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
代码: 全选
Sending...
Sending via mail...
Opening STARTTLS connection to `smtp.gmail.com'...done
220 mx.gmail.com ESMTP n40sm1473018pyg
250-mx.gmail.com at your service, [221.220.133.35]
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
220 2.0.0 Ready to start TLS
250-mx.gmail.com at your service, [221.220.133.35]
250-SIZE 20971520
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535 5.7.1 Credentials Rejected n40sm1473018pyg
smtpmail-send-it: Sending failed; SMTP protocol error
Making completion list... [2 times]
byte-code: Beginning of buffer
Auto-saving...
Auto-saving *mail*: Opening output file: permission denied, /home/jianghua/News/drafts/drafts/#1#
代码: 全选
220 mx.gmail.com ESMTP n40sm1473018pyg
EHLO localhost
250-mx.gmail.com at your service, [221.220.133.35]
250-SIZE 20971520
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
STARTTLS
220 2.0.0 Ready to start TLS
EHLO localhost
250-mx.gmail.com at your service, [221.220.133.35]
250-SIZE 20971520
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
AUTH LOGIN
334 VXNlcm5hbWU6
ZW1haWwuYWNjb3VudA==
334 UGFzc3dvcmQ6
NjI4MTM0
535 5.7.1 Credentials Rejected n40sm1473018pyg
QUIT
*** Fatal error: A TLS packet with unexpected length was received.
*** Server has terminated the connection abnormally.