From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16760 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.gnus.user Subject: Re: sending mail Date: Thu, 13 Mar 2014 21:03:59 -0300 Organization: Aioe.org NNTP Server Message-ID: <87eh25ejdc.fsf@moondust.localdomain> References: 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 1394755497 22843 80.91.229.3 (14 Mar 2014 00:04:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2014 00:04:57 +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 01:05:08 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 1WOFca-0001ae-Af for gegu-info-gnus-english@m.gmane.org; Fri, 14 Mar 2014 01:05:08 +0100 Original-Received: from localhost ([::1]:42103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOFcZ-00038f-It for gegu-info-gnus-english@m.gmane.org; Thu, 13 Mar 2014 20:05:07 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 59 Original-NNTP-Posting-Host: sLFRm3rjd2NBh+MiOzz3OA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:j7QfqJrf8zwb0OimcJRduDuu9G4= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:87890 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:16760 Archived-At: 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.