[REBOL] Re: SMTP Authentication
From: ml:sproingle at: 5-May-2004 5:37
Scott,
I hope I followed your directions properly. Can you help me figure out what is wrong?
I created a program with the following contents (username, password and destination address
obscured).
======================================
REBOL []
system/schemes/smtp/handler/open-check: [none "220" ["EHLO" system/network/host] "250"
"AUTH LOGIN" "334"
[port/user] "334" [port/pass] "235"]
system/schemes/smtp/user: "<obscured>"
system/schemes/smtp/pass: "<obscured>"
send [obscured--email--com] "Rebol mail test"
=======================================
I ran this with trace/net on and got the following response (some host names and IP addresses
obscured):
>> do %mailer.r
Script: "Untitled" (none)
Net-log: ["Opening" "tcp" "for" "smtp"]
connecting to: <obscured>
Net-log: [none "220"]
Net-log: {220-<obscured> ESMTP Exim 4.24 #1 Wed, 05 May 2004 02:28:10 -0700 }
Net-log: {220-We do not authorize the use of this system to transport unsolicited, }
Net-log: "220 and/or bulk e-mail."
Net-log: [["EHLO" system/network/host] "250"]
Net-log: {250-<obscured> Hello <obscured> [<obscured>]}
Net-log: "250-SIZE 52428800"
Net-log: "250-PIPELINING"
Net-log: "250-AUTH PLAIN LOGIN"
Net-log: "250-STARTTLS"
Net-log: "250 HELP"
Net-log: ["AUTH LOGIN" "334"]
Net-log: "334 <obscured>"
Net-log: [[port/user] "334"]
** User Error: Server error: tcp 501 Invalid base64 data
** Near: smtp-port: open [scheme: 'smtp]
either only