I have a utility that opens a telnet session and allows me to execute commands through a script. The utility allows me to output to a text file whatever is outputted to screen.
This utility runs from a DOS prompt in Windows 95/98, NT or 2000. How can I mail text file this to a certain user.
I telnetted to port 25 of the mail server ( exchange server) and tried to manipulate the file. But the commands only seem to allow for emailing a string of data.
e.g. telnet exchange.ttc.com
helo user
mail from:root@ttc.com
rcpt to
eterj@ttc.com
data
This is the string that I am sending
.
Note that after the string, one must type <CR>.<CR>
Does anyone know if sending a file instead of a string is possible ?