The current version of smtpmail.el in the mail-lib package
(mail-lib-1.37-pkg.tar.gz) only supports the SMTP AUTH mechanism
"cram-md5". There is code in the file to handle the SMTP AUTH
"login" mechanism but due to bug/typo the login mechanism is never
used. Below are pasted the ediff of the changes I made and the
original file. AUTH LOGIN is now working fine for me.
Thanks for the patch! It's committed.
I was never able to test the AUTH LOGIN stuff, so I didn't know if it
worked. (AUTH=LOGIN was never blessed by IETF, I suspect only some
Windows server implement it.)
On another note, perhaps there is an easier way to implemented all
of the AUTH SASL mechanisms by tying some sort of SASL package with
the SMTP AUTH function?
Yes. I think SLIM does this, but I don't think it has been packaged
for XEmacs (even FLIM doesn't seem packaged for XEmacs). Also I'm not
sure if SLIM is considered stable.