You need to send more data as follows...

HELO
MAIL FROM [EMAIL PROTECTED]
RCPT TO [EMAIL PROTECTED]
DATA
Date: 06 DEC 1999 09:23:00
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: This is just a test message. No SPAM!
            (this line is blank)
This is a test message sent from the command line.
.
QUIT


-----Original Message-----
From: Joe M <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, December 06, 1999 9:08 AM
Subject: [IMail Forum] java app


>Hello,
>I'm writing a Java App that, upon finishing its tasks, sends an email to
>someone stating that it's done. I create a socket that connects directly to
>the imail server, and then I'm doing something similar to this:
>
>--- snip ---
>
>HELO
>MAIL FROM [EMAIL PROTECTED]
>RCPT TO [EMAIL PROTECTED]
>DATA
>Subject: Test
>This is just a test message. No SPAM!
>.
>QUIT
>
>--- snip ---
>
>The problem is that when I receive the mail (I do receive the mail), the
To:
>field and the From: field are BLANK. Wondering if there is information the
>server is expecting that I'm leaving out. BTW, when tested with the
>Mindspring mail server, this code works properly.
>
>Thanks.
>
>
>
>Please visit http://www.ipswitch.com/support/mailing-lists.html
>to be removed from this list.
>

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

Reply via email to