From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: Re: sending mail using tls using Emacs under Windows Date: 26 Mar 2015 20:57:48 GMT Message-ID: References: Reply-To: gyliamos@gmail.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427403628 29436 80.91.229.3 (26 Mar 2015 21:00:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Mar 2015 21:00:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 26 22:00:28 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YbEt0-0003AJ-55 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Mar 2015 22:00:18 +0100 Original-Received: from localhost ([::1]:46510 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbEsz-0002IC-Bd for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Mar 2015 17:00:17 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 64 Original-X-Trace: individual.net Tsti7eXhcw8Hwm6UHg7gwwjaT47dj0LX5UMDji8L9y0nQPTb1V Cancel-Lock: sha1:Bvvw/V9oCaydcJ3mRjl4m1zXCJU= User-Agent: slrn/1.0.2 (FreeBSD) Original-Xref: usenet.stanford.edu gnu.emacs.help:211088 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103370 Archived-At: Eli Zaretskii wrote: >> From: Will Parsons >> Date: 25 Mar 2015 21:12:40 GMT >> >> Sivaram Neelakantan wrote: >> > On Tue, Mar 24 2015,Will Parsons wrote: >> > >> > >> > (setq smtpmail-stream-type 'ssl) >> > (setq smtpmail-smtp-server "smtp.gmail.com") >> > (setq smtpmail-smtp-service 465) >> > (setq smtpmail-debug-info t) ; only to debug problems set to t if needed >> > (setq smtpmail-debug-verb t) >> > >> > with the usual entries in .authinfo works for me with Eli's gnutls >> > binaries for GNU Emacs 24.4.1 (i686-pc-mingw32) of 2014-10-24 on LEG570 >> >> Thanks for the suggestion, but including those settings result in >> Emacs crashing, with a Windows pop-up message: "GNU Emacs: The >> extensible self-documenting text editor has stopped working". > > In what version of Emacs? If that's 24.4, please report the crash as > a bug with all the relevant details. If that's an older version, I > suggest to install 24.4 (or 24.5, to be released in a few days). It was 24.2. I've now installed 24.4.1 and retried with the result that emacs doesn't crash but it doesn't work either, this time with the following messages in the Messages buffer: Sending via mail... gnutls.el: (err=[-64] Error while reading file.) boot: (:priority NORMAL :hostname smtp.gmail.com :loglevel 0 :min-prime-bits 256 :trustfiles (/usr/ssl/certs/ca-bundle.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil) gnutls-negotiate: GnuTLS error: #, -64 Well, that 'Error while reading file' message looks suspicious, but both gnutls.el and gnutls.elc seem to exist and be readable. Trying with the original configuration (basically, without the setq smtpmail-stream-type 'ssl and using setq smtpmail-smtp-service 587) the following appears in the Messages buffer: Sending via mail... gnutls.el: (err=[-64] Error while reading file.) boot: (:priority NORMAL :hostname smtp.gmail.com :loglevel 0 :min-prime-bits 256 :trustfiles (/usr/ssl/certs/ca-bundle.crt) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil) 530 5.7.0 Must issue a STARTTLS command first. 9sm4204471qgo.38 - gsmtp 221 2.0.0 closing connection 9sm4204471qgo.38 - gsmtp smtpmail-send-it: Sending failed: 530 5.7.0 Must issue a STARTTLS command first. 9sm4204471qgo.38 - gsmtp So it looks like there's a problem with gnutls.el, but I don't know what. -- Will