Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: n0thingPosted on 1999-05-28 at 16:24:20ID: 1583745
Here is a little shell script ... Please note the "sleep"
is important. Otherwise the script will flood the port and
it won't work.
#!/bin/sh
# Send a test message
# Usage: myscript mailhost
#
# If ping reachable (Under Solaris 2.5.x)
if ping $1 3
then
{
echo HELO mydomain.com # send domain name
sleep 1 # wait 1 seconds for answer
echo MAIL FROM: test@abc.com # send passwd
sleep 1
echo RCPT TO: test@whateverdomain.com # send userid@host
sleep 1
echo DATA
sleep 1
echo this is a test
echo line 2
echo .
echo quit
} | telnet $1 25
fi
You could intergrate this into what ever scripting shell you want.
Regards,
Minh Lai