How to send email with attachment?
I believe the above example only works for text attachments and will not work binary attachments. To send a binary file (example.tgz) you should base64 encode the file. Play around with the uuencode and uudecode commands. I have a script that base64 encodes the file and sends it via e-mail. On the client side you need to save the base64 encoded message and then unbase64 encode the message. Michael.