From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Duane Winner Newsgroups: gmane.emacs.help Subject: Re: How to send a mail using smtp? Date: Mon, 20 Dec 2004 22:02:59 GMT Organization: AT&T Worldnet Message-ID: <41C74C31.8040305@att.net> References: <32lcr2F2g1p01U1@individual.net> <32lid1F3nq6ivU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1103580283 32359 80.91.229.6 (20 Dec 2004 22:04:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2004 22:04:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 20 23:04:37 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 1CgVds-0004h2-00 for ; Mon, 20 Dec 2004 23:04:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CgVoI-0002zS-LJ for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2004 17:15:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!7ad0f515!not-for-mail User-Agent: Mozilla Thunderbird 1.0 (X11/20041210) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 60 Original-NNTP-Posting-Host: eee3d8036e9719d53b01faae44544401 Original-X-Complaints-To: abuse@worldnet.att.net Original-X-Trace: bgtnsc05-news.ops.worldnet.att.net 1103580179 eee3d8036e9719d53b01faae44544401 (Mon, 20 Dec 2004 22:02:59 GMT) Original-NNTP-Posting-Date: Mon, 20 Dec 2004 22:02:59 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:127439 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:22887 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22887 Jianbo Zhu wrote: > 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? I have been trying to get smtpmail to work with authentication, and have been having the same problem. I also posted a question over on gnu.emacs.vm.info looking for a solution. Hopefully someone will have an answer to this. Cheers, Duane > > > Regards, > Jack