I'm attempting to use telenet to send SMTP data.
I know the protocol and can send the mail manually via telnet.
However, I cannot find a way to use a script to feed telnet.
I'm using the MS telnet client built into WinXP.
The end goal is to automate this process into a scheduled batch file.

So far the command stream looks like this -
Code:
telnet
open x.x.x.x 25
ehlo xxxx.com
mail from: [email protected]
rcpt to: [email protected]
data
subject: zzzzzzzzzzzzz

variable message goes here

.

quit
All the information is static except for the message.

Help!