#!/bin/bash HOST=192.168.5.6 PORT=25 echo -n "Pozitiv vagy negativ teszt? (P/n): " read TESTTYPE if [ "$TESTTYPE" == "p" ] then MSG="XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X" else MSG="Normal e-mail teszt" fi ( echo "ehlo gep1.piros.and" echo "mail from: ica@gep.piros.and" echo "rcpt to: joska@verem.zold.and" echo "data" echo "From: Ica" echo "To: Joska" echo "Subject: Teszt level" echo "$MSG" echo "." echo "quit" ) | nc $HOST $PORT