First ever post - I hope this is the correct place!
This script makes and sends an email with a pdf attachment.
It works but the "body text" ($text) is not shown in the message.
echo "Hello $USER"
echo -e "Enter invoice number: \c "
echo -e "Enter recipient email address: \c "
cat /home/life/navi/archive/0000$number.txt | updf -ml50 -mt60 -i/home/life/navi/html/gif/Gbi_head.jpg > jcy10033.pdf
echo $text | umail -u $USER@gondrand.co.uk
-s "Copy invoice: $number" -fmime jcy10033.pdf 'To:' $email 'CC:' $USER@gondrand.co.uk
The problem appears to relate to -fmime.
If the attachment is removed the body text is shown.
Is it possible to display "body text" and use -fmime?
Can anyone suggest a solution?