using netcat

  • From: "Scott Van Singel" <svansingel@xxxxxxxxxxxxxxxxx>
  • To: <exchangelist@xxxxxxxxxxxxx>
  • Date: Thu, 13 Feb 2003 19:54:19 -0500

Ok I got the list for Netcat on
Does or has anyone wrote a file or batch file that uses Netcat?
I need a scritp that will start telnet to port 25, run helo, then rcpt to, mail 
to, data, then the message, then send. 
should look like this.
telnet mail 25
Helo (wait for responce)
MAIL TO: (user@xxxxxxxxxx) (send a Eneter)
RCPT to: (a user@xxxxxxxxxx) (Send a Enter)
DATA (Enter)
Subject: Check the server !! (enter) (enter)
This is from the mail server (enter)
. (enter)
Scott Van Singel

Other related posts:

  • » using netcat