Post by Robert Wolfe
Good afternoon all.
I am working on a custom SMTP mailer for a much bigger project that I am
working on in PB/CC. My problem is that the SMTP transfer goes ok, but
the resulting email that gets sent gets sent with the body of the
message between the X-Header information (if any) and the date
information. I am using the code sample for SMTP from the PB/CC help.
Did you make any changes to the sample code (aside from obvious things like
server, email address, etc.)?
The few network programs I've written were all written from scratch, in part
because there aren't any Usenet samples in the help file. I had to track down
the appropriate RFCs and familiarize myself with them. (Not a very difficult
thing. Took a total of about an hour, about 3-1/2 years ago.) Email shares
many similarities with Usenet, and I expect that if you were to find the
proper RFCs and read them (the help file should have links to where a copy is
kept on powerbasic.com), you'd be able to get your code working.
FWIW, nntp is *really* easy; it's just a matter of sending text commands with
the proper args ("AUTHINFO USER Auric__", "GROUP comp.lang.basic.powerbasic",
"POST", etc.). It's been nearly a decade since I played with email, but IIRC
it's just as easy.
Let's look under the option labeled "Dancing Hamsters".