From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16761 Path: news.gmane.org!not-for-mail From: Steven Arntson Newsgroups: gmane.emacs.gnus.user Subject: Re: sending mail Date: Thu, 13 Mar 2014 19:48:29 -0700 Message-ID: <87d2hpmr5u.fsf@stevenarntson.com> References: <87eh25ejdc.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1394765328 3206 80.91.229.3 (14 Mar 2014 02:48:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 02:48:48 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Mar 14 03:48:57 2014 Return-path: Envelope-to: gegu-info-gnus-english@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 1WOIB4-0003je-Po for gegu-info-gnus-english@m.gmane.org; Fri, 14 Mar 2014 03:48:54 +0100 Original-Received: from localhost ([::1]:42447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOIB4-0008VF-CW for gegu-info-gnus-english@m.gmane.org; Thu, 13 Mar 2014 22:48:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOIAx-0008V5-FF for info-gnus-english@gnu.org; Thu, 13 Mar 2014 22:48:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOIAs-0002CS-Ax for info-gnus-english@gnu.org; Thu, 13 Mar 2014 22:48:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOIAs-0002CF-4V for info-gnus-english@gnu.org; Thu, 13 Mar 2014 22:48:42 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WOIAp-0003Tl-S2 for info-gnus-english@gnu.org; Fri, 14 Mar 2014 03:48:39 +0100 Original-Received: from 75-165-112-178.tukw.qwest.net ([75.165.112.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 03:48:39 +0100 Original-Received: from steven by 75-165-112-178.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Mar 2014 03:48:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 68 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 75-165-112-178.tukw.qwest.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:EuKRq12kJPfv3YqHSRJF+QyhYBs= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16761 Archived-At: Thanks so much for this. I copied the init lines you provided and replaced with my specs, kept a few lines of my original, and presto, I successfully sent an email. I don't know why it works yet, but it does work, which is my Gnus Victory for today! best, steven nljlistbox2@gmail.com (N. Jackson) writes: > At 23:58 -0300 on Tuesday 2014-03-11, Steven Arntson wrote: > >> I'm a beginning user of gnus, trying to use it to send emails, with the >> command "m." I compose, and then send with C-c C-c, and it looks like >> it's working, but then the system hangs and times out. > > I'm a beginning user of Gnus too, but I do have a couple of ideas about > what might be wrong with your set up. > >> ;; My Gnus init >> >> (setq gnus-select-method '(nntp "news.gwene.org")) >> (add-to-list 'gnus-secondary-select-methods '(nnml "")) >> (add-to-list 'gnus-secondary-select-methods >> '(nnmbox "" >> (nnmbox-mbox-file "~/MAIL") >> (nnmbox-active-file "~/Mail.active"))) >> (setq mail-sources '((pop :server "my.usual-server.com" :user "me@mydomain.com"))) >> >> (setq send-mail-function 'smtpmail-send-it) >> (setq message-send-mail-function 'smtpmail-send-it) >> (setq smtpmail-default-smtp-server "my.usual-server.com") ; needs to be specified before the (require) >> (require 'smtpmail) >> (setq smtpmail-local-domain "mydomain.com") >> (setq smtpmail-sendto-domain "mydomain.com") >> (setq user-full-name "My Name") >> (setq user-mail-address (concat "me@" smtpmail-local-domain)) >> (setq smtpmail-debug-info t) ; only to debug problems > > I don't see you telling smtpmail which user account to log in > with. Also, if the SMTP server is on a port other than 25, then I think > you have to specify that too. > > On the other hand, maybe it can get that information from your > .authinfo file -- I still haven't figured that out. My password is > certainly being retreived from my .authinfo file, so I don't really see > why everything can't be retrieved from there at the same time! > > FWIw, I have this: > > (setq message-send-mail-function 'smtpmail-send-it > smtpmail-smtp-server "smtp.gmail.com" > smtpmail-default-smtp-server "smtp.gmail.com" > smtpmail-smtp-service 587 ; TCP Port. > smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil)) > smtpmail-auth-credentials '(("smtp.gmail.com" 587 "my_user_name@gmail.com" nil)) > ) > > I don't seem to need a (require 'sendmail). > > For the TLS, I have this: > > (setq starttls-use-gnutls t > starttls-gnutls-program "gnutls-cli" > ) > > I hope some of this helps! > > N.