[REBOL] Re: Send & mail-server problem
From: rebol:optushome:au at: 5-Aug-2002 7:16
----- Original Message -----
From: "G. Scott Jones" <[gscottjones--mchsi--com]>
To: <[rebol-list--rebol--com]>
Sent: Monday, August 05, 2002 4:16 AM
Subject: [REBOL] Re: Send & mail-server problem
> Hi, Robert,
>
> From: "Robert M. Muench"
> > Hi, I'm running the eXtremail mail server (http://www.extremail.com/)
> > for all of my and my companies SMTP stuff. I'm testing Phil's readmail
> > mail reader and have written some Rebol CGI scripts that send emails.
> > Sending mails with 'send works up to only one thing:
> >
> > ** User Error: Server error: tcp 250 Bye. ** Where: close smtp-port
> >
> > So, the mail is send correctly but the 'send function thinks there was
> > an error and states this error. There seems to be some things extremail
> > is sending that lets 'send make the error assumption.
> >
> > Does anyone has an idea what the problem could be? How to fix it?
>
> Looking at the error and the smtp scheme, I think that the most likely
> problem is that the mail server is sending a nonstandard sign-off
sequence.
> Normally, after the body of the email is sent, REBOL sends a "QUIT"
command.
> In response, then it expects to see "221" followed by any brief message.
My
> guess is that extrememail is (probably erroneously) sending "250 Bye".
250
> is usually only sent following a correct sign-on or correct command/data
> sequence, not for the sign-off command.
>
I've seen something similar to this when sending a long email that had no
line breaks. I reformatted the text to wrap at around 70 chars and the
problem was gone.
Cheers,
Allen K