Subj : having some problems with
To   : Kernal2
From : Amcleod
Date : Tue Aug 21 2001 11:03 pm

RE: having some problems with
BY: Kernal2 to All on Tue Aug 21 2001 10:20 pm

> I am having some problems with this program. Its not sending out the email
> message. Can you please tell me whats wrong with it??

Well, just having a quick look at it, I note that you are putting TWO blank
lines between the additional headers and the body, one as an extra \n after the
"To:" address, and then one as a separate \n before the body goes out.  But
this won't cause it to fail -- just to add a blank line at the top of the body.

Also, I note that the tail end of the program that closes the dialogue with the
server is absent.  Is it really missing, or just not included in the message?
After the body is sent you need to send a "\n.\n" (newlinw-dot-newline) to mark
the end of the body, and then a "quit" to sever the connection with the server
(unless you want to loop back and send another message).

if all that looks good, then I'd suggest sticking in a few lines to grab and
display the response from the server so you can see what's wrong.  Right after
each "SOCKET_WRITE" try adding a

   SOCKET_READLINE sock str
   PRINT str

and then run it while you watch (like ;EXEC *MODULE).  You should see the
responses from the server.  There will be some garbage there too, but the
plain-text response will also be visible after the garbage.  (Anybody know what
this garbage is and how to suppress/bypass it?)  The responses from the server
should let you know what is happening.  You may need a PAUSE at the end so it
doesn't disappear in a flash...

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net