#!/bin/sh
empty -f -i /ram/in -o /ram/out telnet tcu.ru 25
empty -w -t1 -i /ram/out -o /ram/in "220" "HELO xxxxxxx.ru"
empty -w -t1 -i /ram/out -o /ram/in "250" "MAIL FROM: br6104@chertan.ru"
empty -w -t1 -i /ram/out -o /ram/in "250" "RCPT TO: xxxxx@xxxxx.ru"
empty -w -t1 -i /ram/out -o /ram/in "250" "DATA"
empty -w -t1 -i /ram/out -o /ram/in "354" "To: xxxxx@xxxxx.ru"
cp $1  /ram/in
empty -s -o /ram/in "...."
empty -s -o /ram/in "."
empty -w -t1 -i /ram/out -o /ram/in "250" "QUIT"
empty -k

