delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=VV5k1QBsAUfv47dQB8p2eKsBzs3cpQGcYkXuLabeieN | |
uAgpX/u4uVfhcRXNrN57nHp/Gz1fvN59LD3r/jHPC8kcaM2BHMnn9AFyXBhx59Vj | |
Es/QwOrXL/BmSsvEpzgYh+3844X1xJYVF1fkNRRkS2FzPRMy4c0XfLdxyn6YDCos | |
= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=890RPi7j2qyuXEAo/MUCxCczTq8=; b=HhahyCvxDpvjI9zcG | |
Z5J8/8YHbv0fb6hS6TDGyCXEzlcbwUQ3323rChqsmPpUbjbtYQb8bPKQsHcqg7Ly | |
vF0HxbN4ZxWsOdeYzDu7LgLUauJwdKippCF83/jxbZDOVWIg2CZevNTdMVdmN+PU | |
44s1YMw+8Heu1izwUmuSjNzTgw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_NEUTRAL autolearn=ham version=3.3.2 |
X-HELO: | limerock02.mail.cornell.edu |
X-CornellRouted: | This message has been Routed already. |
Message-ID: | <521FBEAF.6000602@cornell.edu> |
Date: | Thu, 29 Aug 2013 17:35:43 -0400 |
From: | Ken Brown <kbrown AT cornell DOT edu> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
MIME-Version: | 1.0 |
To: | cygwin <cygwin AT cygwin DOT com> |
Subject: | Re: emacs-24.3.1 crashes on talking to Google |
References: | <1377786441 DOT 48066 DOT YahooMailNeo AT web184401 DOT mail DOT bf1 DOT yahoo DOT com> |
In-Reply-To: | <1377786441.48066.YahooMailNeo@web184401.mail.bf1.yahoo.com> |
On 8/29/2013 10:27 AM, Zdzislaw Meglicki wrote: > Ken asks: > >> This is not specific to Cygwin. If it belongs anywhere, it should be in the emacs manual. >> I just looked at the section "Emacs speaks SMTP" in the smtpmail documentation, and >> the instructions look pretty clear to me. What happens if you follow those instructions, >> replacing "mail.example.org" with "smtp.gmail.com"? If there's anything Cygwin-specific >> that goes wrong, then I'll try to fix it or add something to >> >> /usr/share/doc/emacs/README.Cygwin, >> >> whatever is appropriate. > > I tried every trick and... it still crashes: the moment you try to send mail through Google > with emacs. > > My latest .emacs code looked as follows: > > (require 'smtpmail) > (require 'auth-source) > (setq message-send-mail-function 'smtpmail-send-it) > (setq send-mail-function 'smtpmail-send-it) > (setq smtpmail-stream-type 'starttls) > (setq smtpmail-default-smtp-server "smtp.gmail.com") > (setq smtpmail-smtp-server "smtp.gmail.com") > (setq smtpmail-smtp-service 587) > > The crash occurs with or without smtpmail-stream-type set. The authentication > lives on the ~/.authinfo file, which looks as follows: > > machine smtp.gmail.com login <my-login> password <my-password> > > of course, with <my-login> and <my-password> filled with the correct info. > > There is some confusing information on-line and also in the emacs manual > about whether the ~/.authinfo file should be generated by emacs on asking > for the login and password on connection, or whether it should be written by > the user prior to invoking emacs. If I don't have this file, emacs does not ask > me for the login and password, but it crashes anyway. > > Here's my question to the community: can anyone send e-mail through Google > SMTP from emacs-24.3.1 on the latest 64-bit Windows-8/Cygwin? I don't use Windows 8, but I just checked on Windows 7, and it works for me. I created a ~/.authinfo file with the following contents: machine smtp.googlemail.com login <my-login> port 587 password <my-passwd> And I put the following in my ~/.emacs: (require 'smtpmail) (setq smtpmail-smtp-server "smtp.googlemail.com") (setq smtpmail-smtp-service 587) (setq send-mail-function 'smtpmail-send-it) [I used "smtp.googlemail.com" because that's the smtp server in my Thunderbird gmail account.] With these settings I can send mail successfully. I do get the following in the *Messages* buffer after sending mail: Sending via mail... gnutls.c: [1] Note that the security level of the Diffie-Hellman key exchange has been lowered to 256 bits and this may allow decryption of the session data Sending email Sending email done gnutls.c: [0] (Emacs) fatal error: The TLS connection was non-properly terminated. Sending...done Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |