I've managed to send an attachment with mail using:
zip data.zip data.txt test.sh | uuencode data.zip | mail email@example.com
-s "Subject goes here"
but the attachment cannot be opened. It is always corrupt.
I know I can use other tools but the problem is we have a ghost from which the OS is installed. It has the minimum software installed in order to run Redhat 9.
Therefore, using new tools which aren't in the current installation will require a new ghost which I'm trying to avoid.