From: Jianbo Zhu <mouse0407@163.com>
Subject: Re: How to send a mail using smtp?
Date: 20 Dec 2004 21:25:22 +0800 [thread overview]
Message-ID: <ufz21f6f1.fsf@163.com> (raw)
In-Reply-To: 32lid1F3nq6ivU1@individual.net
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?
Regards,
Jack
next prev parent reply other threads:[~2004-12-20 13:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-19 9:11 How to send a mail using smtp? Jack
2004-12-19 12:29 ` Daniel Pittman
2004-12-19 13:08 ` D P Schreber
2004-12-19 13:43 ` Jack
2004-12-19 14:43 ` D P Schreber
2004-12-20 13:25 ` Jianbo Zhu [this message]
2004-12-20 22:02 ` Duane Winner
2004-12-21 6:50 ` Bob Babcock
2004-12-21 15:26 ` Duane Winner
2004-12-21 18:51 ` How to send a mail using smtp? - solved! (but need help with "Mail From:") Duane Winner
2004-12-21 19:12 ` Tim McNamara
2004-12-21 19:28 ` Bob Babcock
2004-12-21 22:48 ` Kevin Rodgers
2004-12-22 4:25 ` Bob Babcock
2004-12-22 17:58 ` Kevin Rodgers
[not found] ` <mailman.7260.1103461994.27204.help-gnu-emacs@gnu.org>
2004-12-19 16:09 ` How to send a mail using smtp? Tim McNamara
2004-12-19 17:21 ` D P Schreber
2004-12-19 23:04 ` Daniel Pittman
2004-12-20 0:18 ` Daniel Pittman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ufz21f6f1.fsf@163.com \
--to=mouse0407@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).