Use the mpack command to do this. Mpack is not a standard HP-UX
command so source from Google. Once installed you can email
attachments, this example is to email a .gz file.

/usr/local/bin/mpack -s "Subject field" $FILE $ADDRESS

FILE is the file to attach and ADDRESS is the email address to
use. Without specifying the content type, mpack will read $FILE and
determine it’s format.