#!/bin/bash function mail_input { echo "ehlo gep1" echo "mail from: ica@gep1" echo "rcpt to: joska@gep2.zold.and" echo "data" echo "From: Ica" echo "To: Joska" echo "Subject: Teszt level" echo "Teszt level ujra" echo "." echo "quit" } mail_input | nc 192.168.5.6 25