Subj : Sending internet e-mail
To   : All
From : Amcleod
Date : Mon Aug 20 2001 05:48 am

RE: Sending internet e-mail
BY: Amcleod to All on Mon Aug 20 2001 12:34 pm

>    sprintf str "To: %s\n" to_address
>    SOCKET_WRITE sock str
>
>    #----------------------#
>    # send body of message #
>    #----------------------#

Oooooops!  :-/ <-- red face!

In cleaning up and removing _my_ address and replacing it with example.com,
etc, I killed an important line:

Just before sending the BODY of the message you need to insert a blank line to
end the HEADER.  So you need to add the lines:

  SET str "\n"
  SOCKET_WRITE sock str

Just before sending the body of the message.

OR, you can add an extra newline ("\n") to the previous line, in this case the
"to_address" line -- which could be written as

  sprintf str "To: %s\n\n" to_address

just so you get the extra newline between the header and body.

Sorry about that..... ;-)


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