From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54483 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: trouble with smtp and gnus Date: Tue, 28 Oct 2003 03:29:49 +0100 Sender: ding-owner@lists.math.uh.edu 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 1067308225 20821 80.91.224.253 (28 Oct 2003 02:30:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2003 02:30:25 +0000 (UTC) Original-X-From: ding-owner+M3024@lists.math.uh.edu Tue Oct 28 03:30:23 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEJck-0005Qg-00 for ; Tue, 28 Oct 2003 03:30:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AEJcY-0005nR-00; Mon, 27 Oct 2003 20:30:10 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AEJcQ-0005nL-00 for ding@lists.math.uh.edu; Mon, 27 Oct 2003 20:30:02 -0600 Original-Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [193.162.153.2]) by justine.libertine.org (Postfix) with ESMTP id 44F753A006D for ; Mon, 27 Oct 2003 20:30:02 -0600 (CST) Original-Received: from defun.localdomain (0xc3d7e0d7.esnxr4.ras.tele.dk [195.215.224.215]) by pfepa.post.tele.dk (Postfix) with ESMTP id 297EE47FE01 for ; Tue, 28 Oct 2003 03:30:00 +0100 (CET) Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: (Christopher Tessone's message of "Mon, 27 Oct 2003 19:33:58 -0600") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54483 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54483 Christopher Tessone writes: > I have followed every recipe I can find on the net, all of which > involve combinations of loading smtpmail, setting various variables, > and setting send-mail-function and message-send-mail-function to > smtpmail-send-it. Here is one such recipe I found: > > ;; > ;; Want to use smtp instead of sendmail. > ;; > (setq send-mail-function 'smtpmail-send-it) > (defvar smtpmail-default-smtp-server "mail") First of all: Use `setq' not `defvar'. For me the following is enough to use smtp: (setq message-send-mail-function 'smtpmail-send-it) (setq smtpmail-default-smtp-server "smtp.mail.dk") But there might be some differences between the Emacs and XEmacs version of smtpmail.el. > ;; Want to use message.el instead of mail.el > ;; > (define-key global-map [(control x) m] 'message-mail) > (setq message-send-mail-function 'smtpmail-send-it) The right way (in Emacs at least) to do this is: (setq mail-user-agent 'gnus-user-agent)