1
1
Fork 0

mail.sh removed from mbots folder

This commit is contained in:
david 2012-07-01 23:27:14 +02:00
parent 1fc84a38d9
commit c952a6b1ca
1 changed files with 0 additions and 52 deletions

View File

@ -1,52 +0,0 @@
#!/bin/bash
###############################
# #
# mbots mail routine #
# #
###############################
# ***** config section *****
#don't touch as long as you're not me. feel me?
version=".01"
author="david@socialnerds.org"
html="1" #html mail
smtpserver="smtp.aec.at"
recipients="test@socialnerds.org david@aec.at"
from="mbots@aec.at"
subject="notification"
line=$1
# ***** start of script *****
#telnet connection
{
sleep 1
echo "HELO $HOSTNAME"
sleep 1
echo "MAIL FROM: $from"
sleep 1
for address in $recipients; do
echo "RCPT TO: $address"
sleep 1
done
echo "DATA"
sleep 1
for address in $recipients; do
echo "To: $address"
done
echo "From: Monitoring Bots <$from>"
echo "Subject: $subject"
sleep 1
echo "$line"
sleep 1
echo "."
sleep 1
echo "QUIT"
} | telnet $smtpserver 25
# ***** end of script *****
#live long and prosper
exit 0