Send message in batch mode via telnet

From: DosProgrammer (DosProgrammer_at_discussions.microsoft.com)
Date: 09/22/04


Date: Wed, 22 Sep 2004 15:59:01 -0700

Need help in inputting the telnet command (HALO,MAIL FROM: RCPT TO: etc) with
in a DOS Batch File. Did get process to work interactively but need help
with creating it in a batch file format. Have tried creating a batch file
and redirecting telnet command with no sucess.
ex. telnet server.domain 25 < cmdfile

the cmdfile contain the HALO, MAIL FROM:, RCPT TO: commands. Thanks in
advance.