From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Q1999 Newsgroups: gmane.emacs.help Subject: Re: sending mail using tls using Emacs under Windows Date: Thu, 26 Mar 2015 00:46:06 -0700 (PDT) Message-ID: <1c3a03ee-901d-463c-98e1-3dd3e7ba51f9@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1427379113 9730 80.91.229.3 (26 Mar 2015 14:11:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Mar 2015 14:11:53 +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 15:11:52 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 1Yb8VQ-0001OS-5X for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Mar 2015 15:11:32 +0100 Original-Received: from localhost ([::1]:44677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yb8VP-0005QS-FJ for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Mar 2015 10:11:31 -0400 X-Received: by 10.182.129.166 with SMTP id nx6mr13808129obb.35.1427355967051; Thu, 26 Mar 2015 00:46:07 -0700 (PDT) X-Received: by 10.140.94.105 with SMTP id f96mr220094qge.36.1427355966934; Thu, 26 Mar 2015 00:46:06 -0700 (PDT) Original-Path: usenet.stanford.edu!z20no3387401igj.0!news-out.google.com!q90ni531qgd.1!nntp.google.com!h3no4885828qgf.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.150.108.78; posting-account=X7JwogoAAACP8PFLkqCKx34awu1aNwR6 Original-NNTP-Posting-Host: 85.150.108.78 User-Agent: G2/1.0 Injection-Date: Thu, 26 Mar 2015 07:46:06 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211070 X-Mailman-Approved-At: Thu, 26 Mar 2015 10:11:14 -0400 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:103364 Archived-At: On Monday, March 23, 2015 at 10:55:55 PM UTC+1, Will Parsons wrote: > I'd like to be able to send mail using Emacs 24.2.1 under Windows and > am having difficulties. With the following in my .emacs file: > > (setq > send-mail-function 'smtpmail-send-it > smtpmail-smtp-server "smtp.gmail.com" > smtpmail-smtp-service 587) > > and a suitable entry in .authinfo: > > machine smtp.gmail.com login xxxx@gmail.com port 587 password xxxxx > > attempting to send a message using the default method "Gnus Message" > results in: > > smtpmail-send-it: Sending failed: 530 5.7.0 Must issue a STARTTLS > command first. y142sm1414876iod.25 - gsmtp > > Looking under Options => Packages, I see that gnutls is built-in, but > running gnutls-available-p returns nil. > > Am I missing something? > > -- > Will for imap I have the following in my .emacs which seems to work. However it does not work until you tell google not to block less secure log in attempts. First time use, you get a gmail from google with instructions on how to do that. ;; Start GNUS (require 'gnus) (add-to-list 'load-path "~/starttls-0.10") (require 'starttls) (add-to-list 'gnus-secondary-select-methods '(nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl))) (setq message-send-mail-function 'smtpmail-send-it smtpmail-starttls-credentials '(("smtp.gmail.com" 25 nil nil)) smtpmail-auth-credentials '(("smtp.gmail.com" 25 "yourEmailAddress@gmail.com" nil)) smtpmail-default-smtp-server "smtp.gmail.com" smtpmail-smtp-server "smtp.gmail.com" smtpmail-smtp-service 25 smtpmail-local-domain "yourcompany.com") ;; End GNUS