[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: send mail directly using smtp ?
From: |
Tim McNamara |
Subject: |
Re: send mail directly using smtp ? |
Date: |
Wed, 05 Jan 2005 17:23:42 -0600 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) |
William Xuuu <william_xuuu@163.com> writes:
> Hi!
>
> I have the following in my .gnus.el:
>
> (require 'smtpmail) (setq send-mail-function 'smtpmail-send-it
> message-send-mail-function 'smtpmail-send-it
> smtpmail-smtp-server "smtp.163.com"
> smtpmail-default-smtp-server "smtp.163.com"
> smtpmail-smtp-service 25 smtpmail-auth-credentials
> '(("smtp.163.com" 25 "william_xuuu" "secret")))
>
> (setq smtpmail-debug-info t)
Sorry, C-c C-q wrapped your Lisp lines, which always irks me. Seems
like this command ought to honor returns better.
> When sending mail, i get an error:
>
> Sending... Sending via mail... 220 Coremail SMTP(Anti Spam) System
> (163com[20030606]) 250-smtp3 250-PIPELINING 250-AUTH LOGIN PLAIN
> NTLM 250-AUTH=LOGIN PLAIN NTLM 250 8BITMIME 553 You are not
> authorized to send mail as <MAIL FROM: <william_xuuu@163.com>>,
> authentication is required 221 Bye smtpmail-send-it: Sending failed;
> SMTP protocol error
C-c C-q wrapped this too, dagnabbit.
> Am i doing anything wrong? It's really very annoying when i can't
> use my Gnus to send mail. Any help would be greatly appreciated.
You seem to be trying to login to the SMTP server with a username it
does not accept. The question is "why?" Is "william_xuuu" absolutely
correct? Is the password absolutely correct? What's interesting to
me is that your auth credentials line does *not* include the string
"william_xuuu@163.com" and yet the server barfs on this. It it
reading the e-mail address from the From: header?
My SMTP server requires authentication. Here's my .gnus related to
this (slightly munged):
(add-to-list 'gnus-secondary-select-methods '(nnml ""))
(eval-after-load "mail-source"
'(add-to-list 'mail-sources '(pop :server "pop.iphouse.com"
:user "username"
:password "password")))
(setq send-mail-function 'smtpmail-send-it)
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "smtp.iphouse.com")
(setq smtpmail-auth-credentials
'(("smtp.iphouse.com" 25 "username" "password")))
I don't see a significant difference, and yet mine does work. Perhaps
the problem is at the server end?