Scripts : Shell script to send mail using telnet in Linux

while [ $count = 1 ]
do
( echo open MAIL-SERVER-NAME 25
sleep 8
echo helo MAIL-SERVER-NAME
echo mail from: SENDER-ADDRESS
sleep 2
echo rcpt to: RECIPIENT-ADDRESS
sleep 2
echo data
sleep 2
echo subject:  YOUR-SUBJECT-HERE
echo
echo
echo this is a test mail
sleep 5
echo .
sleep 5
echo quit ) | telnet
count=2
done

Share this

Related Posts

Previous
Next Post »

2 comments

Write comments
December 1, 2009 at 10:31 AM delete

This script is really cool. I need more Script.

Reply
avatar
December 1, 2009 at 10:48 AM delete

Thank you for your feedback dude.I Will post more scripts soon..

Reply
avatar

What do you think about this Article? Add your Opinion..! EmoticonEmoticon