From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59049 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Setting up mail Date: Fri, 05 Nov 2004 14:48:59 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099633823 2081 80.91.229.6 (5 Nov 2004 05:50:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Nov 2004 05:50:23 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M7589@lists.math.uh.edu Fri Nov 05 06:50:07 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CPwz9-0003co-00 for ; Fri, 05 Nov 2004 06:50:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CPwyK-0007NM-00; Thu, 04 Nov 2004 23:49:16 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CPwyC-0007NE-00 for ding@lists.math.uh.edu; Thu, 04 Nov 2004 23:49:08 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CPwyA-0001BO-FA for ding@lists.math.uh.edu; Thu, 04 Nov 2004 23:49:06 -0600 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id 9EE833A003C for ; Thu, 4 Nov 2004 23:49:04 -0600 (CST) Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.42) id 1CPwyD-0003yt-Iq; Fri, 05 Nov 2004 00:49:09 -0500 Original-To: Trey Sizemore X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:5ShqbNcZOh9OguK0ER5JAKTt4tM= X-Hashcash: 1:17:041105:trey@fastmail.fm::IksqWa3N1VzRUHTk:0000000000000000000000000000000000000000000001MQP X-Hashcash: 1:17:041105:ding@gnus.org::lXWo3rhTfFqEkhN1:00000P6S X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59049 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59049 >>>>> In Trey Sizemore wrote: > I have a seemingly elementary question that I can't seem to find an answer > to. I'm getting into using Emacs (ideally exclusively for things like > editing, email, newsgroups, etc.). I've gotten gnus to display articles >>>From a newsgroup server and I've been going through the manual learing how > to mark, score, etc. However, I don't seem to be able to post or mail from > gnus. The default is set to use sendmail as the agent (which I thought was > working on my system) but no mail goes out. So I'd like to change it to > use my ISP's smtp server You can find how to change the way to send mails in the Gnus manual. M-x info RET d m Gnus RET m Posting Server RET: --8<---------------cut here---------------start------------->8--- When sending mail, Message invokes `message-send-mail-function'. The default function, `message-send-mail-with-sendmail', pipes your article to the `sendmail' binary for further queuing and sending. When your local system is not configured for sending mail using `sendmail', and you have access to a remote SMTP server, you can set `message-send-mail-function' to `smtpmail-send-it' and make sure to setup the `smtpmail' package correctly. An example: (setq message-send-mail-function 'smtpmail-send-it smtpmail-default-smtp-server "YOUR SMTP HOST") --8<---------------cut here---------------end--------------->8--- You will also need to see the smtpmail.el file. In order to know where it is, type the following: M-x locate-library RET smtpmail.el RET > and was not sure about the syntax and where to put > it (I don't currently have a ~/.gnus file (using SUSE) but I do have a > ~/.gnu-emacs file. Do I need to create a .gnus file? > Thanks for the assistance. I recommend you use the ~/.gnus.el file rather than the ~/.gnus file. Anyway, that file is essential to use Gnus, I think. It is used to customize most Gnus features including the method for reading and posting news. Here's an example which you should put into the ~/.gnus.el file in order to use the smtpmail package. (setq message-send-mail-function 'smtpmail-send-it) You will also need to put the following lines in the ~/.emacs file. The reason it is not ~/.gnus.el but ~/.emacs is that smtpmail is not only for Gnus. (setq smtpmail-default-smtp-server "YOUR SMTP HOST") (setq smtpmail-local-domain "YOUR DOMAIN NAME") (setq smtpmail-sendto-domain "YOUR DOMAIN NAME") Where "YOUR SMTP HOST" and "YOUR DOMAIN NAME" should be replaced with proper ones.