help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to send a mail using smtp?


From: Duane Winner
Subject: Re: How to send a mail using smtp?
Date: Mon, 20 Dec 2004 22:02:59 GMT
User-agent: Mozilla Thunderbird 1.0 (X11/20041210)

Jianbo Zhu wrote:
D P Schreber <schreberdp@rayban.net> writes:


On 2004-12-19, Jack@mail.org <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 <MAIL FROM: <mouse0407@163.com>>, 
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]