[REBOL] Re: SMTP Authentication
From: Gary:Jones:usap:gov at: 30-Apr-2004 10:56
> Sorry I didn't understand that the scripts were for SMTP
> on MS Exchange only. I know my ISP is not using Exchange
> servers, so do you think the scripts should still work,
> or is there another way to pass username/password to non
> Exchange SMTP servers?
It depends on whether your SMTP server follows the numeric prompt "334" and whether your
SMTP server allows plain text authentication or some other method of encoding. This
was why I suggested turning "trace/net on" and seeing what the net log says the server
In the meantime you can still try the patch (watch for line wrap):
system/schemes/smtp/handler/open-check: [none "220" ["EHLO" system/network/host] "250"
"AUTH LOGIN" "334" [port/user] "334" [port/pass] "235"]
Then try to have the user name and password sent as plain (unencoded) text. Use this
script fragment as one way to set these data:
view lo: layout [
f: field "username" [
system/schemes/smtp/user: copy value
field hide [
system/schemes/smtp/pass: copy value
do [focus f]
or alternatively in noninteractive script method:
This fragment sets "system/schemes/smtp/user" to your username, and "system/schemes/smtp/pass"
to your password. Within the SMTP scheme "system/schemes/smtp/user" is represented by
the internal path "port/user" and "system/schemes/smtp/pass" is represented by the internal
path "port/pass". So when the SMTP request is being handled and the numeric indicator
"334" is detected, the protocol sends first the port/user, and then the port/pass is
sent for the second "334".
If this suggestion does not work, then try at a *fresh* REBOL session turn the "trace/net
on". Then send a test email and make a copy of the net-log, obscuring any sensitive
information and paste-ing that to the forum. If I/we cannot figure it out from that,
there is one other way (which I'll avoid explaining from now since I do not believe it
will be necessary).
I hope the plain text authentication works. If not let me/us know what the net log shows
from a fresh REBOL session.