Hello,
I use the below script to send a file as an attachmnet. Works fine.
But....
The subject is inserted inline, and not as a subject by itself. Could somebody explain why?
/usr/lib/sendmail -f "TheMoose <me@over.here>" me@over.there << END
`(
echo "Subject: Attachment"
echo ""
)`
`cat /path/to/file.txt`
`uuencode file.txt file.txt`
Many thanks in advance...
I use the below script to send a file as an attachmnet. Works fine.
But....
The subject is inserted inline, and not as a subject by itself. Could somebody explain why?
/usr/lib/sendmail -f "TheMoose <me@over.here>" me@over.there << END
`(
echo "Subject: Attachment"
echo ""
)`
`cat /path/to/file.txt`
`uuencode file.txt file.txt`
Many thanks in advance...