#echo "HELO ella-associates.org"; echo "MAIL FROM:<matth3wbishop@yahoo.com>"; echo "RCPT TO:<matthew@ella-associates.org>"; echo "DATA"; echo "Hi, guys."; echo "Just testing our new mail system."; printf("\n\r.\n\r");;

echo "HELO ella-associates.org";
echo "MAIL FROM:<matth3wbishop@yahoo.com>";
echo "RCPT TO:<matthew@ella-associates.org>";
echo "DATA";
echo "subject: testing the netcat mail script with a data section date"
echo "from: <matth3wbishop@yahoo.com> "
echo "to: <matthew@ella-associates.org> "
echo "date: $date "
echo " "
echo "this mail uses printf not echo. This took me hours and hours of pain and torture";
echo "the key seems to be using the -i switch to "
echo "delay the output of each line"
echo "and also using an \r\n.\r\n combination to terminate the" 
echo "the data section."
#echo -n -e "\r\n.\r\n"
printf "\r\n.\r\n"
echo "quit"