FILE=$1 { echo "To:leitner@hls.via.at" echo "Subject:My attachment: $FILE" echo "From:leitner@hls.via.at" echo "Content-Type: application/zip; name=`basename $FILE`" echo "Content-Transfer-Encoding: base64" echo "Content-Description: Logfiles" echo "Content-Disposition: attachment; filename=`basename $FILE`" echo echo "Siehe Beilage" echo mimencode $FILE } | /usr/sbin/sendmail -oi -t