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: Jianbo Zhu
Subject: Re: How to send a mail using smtp?
Date: 20 Dec 2004 21:25:22 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

D P Schreber <address@hidden> writes:

> On 2004-12-19, address@hidden <address@hidden> 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 address@hidden'.
>  

I've got the following error while I try to send a message.

You are not authorized to send mail as <MAIL FROM: <address@hidden>>, 
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 "address@hidden" "*****"))

Can you tell me what I had missed?


Regards,
Jack


reply via email to

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