From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jianbo Zhu Newsgroups: gmane.emacs.help Subject: Re: How to send a mail using smtp? Date: 20 Dec 2004 21:25:22 +0800 Organization: Bentium Ltd. (CN99) Message-ID: References: <32lcr2F2g1p01U1@individual.net> <32lid1F3nq6ivU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103549376 4211 80.91.229.6 (20 Dec 2004 13:29:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2004 13:29:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 20 14:29:30 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CgNbN-00071U-00 for ; Mon, 20 Dec 2004 14:29:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CgNlo-0007Rs-Qy for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2004 08:40:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.cn99.com!news.yaako.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 218.108.182.46 Original-X-Trace: news.yaako.com 1103549265 20579 218.108.182.46 (20 Dec 2004 13:27:45 GMT) Original-X-Complaints-To: usenet@news.yaako.com Original-NNTP-Posting-Date: Mon, 20 Dec 2004 13:27:45 +0000 (UTC) Original-Sender: =?iso-8859-9?q?=D6=EC=BD=A8=B2=A8@DANIU?= User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:127435 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22884 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22884 D P Schreber writes: > On 2004-12-19, Jack@mail.org wrote: > > So no user info should be provided? > > [PLEASE edit quoted text before posting followups] > > My smtp server allows authentication but doesn't require it, so in this > context I never bothered to figure out how to set it up. If yours > requires authentication, try info for 'SMTP'. Looks like you want to set > smtpmail-auth-credentials and maybe also smtpmail-starttls-credentials. > > > smtpmail-auth-credentials's value is "~/.authinfo" > > Specify username and password for servers, directly or via .netrc file. > This variable can either be a filename pointing to a file in netrc(5) > format, or list of four-element lists that contain, in order, > `servername' (a string), `port' (an integer), `user' (a string) and > `password' (a string, or nil to query the user when needed). If you > need to enter a `realm' too, add it to the user string, so that it > looks like `user@realm'. > I've got the following error while I try to send a message. You are not authorized to send mail as >, authentication is require This is part of my .emacs file: (require ' smtpmail) (setq send-mail-function 'smtpmail-send-it) (setq message-send-mail-function 'smtpmail-send-it) (setq smtpmail-default-smtp-server "smtp.163.com") (setq smtpmail-smtp-server "smtp.163.com") (setq smtpmail-debug-info t) ; only to debug problems (setq smtpmail-auth-credentials '("smtp.163.com" 25 "mouse0407@163.com" "*****")) Can you tell me what I had missed? Regards, Jack