Thanks very much this looks useful,
since my original post I tried to do this a different way. However much to my disgust I've realised that uuencode isn't on my web-server. Is there any other way to send an attachment through the CLI?
For reference here is the code that I'm currently using, in case anyone else finds it useful
Code:
#!/bin/csh
set todaysDate=`date +%a_%d_%b_%y`
mysqldump -u username -ppassword dbName > dbName_${todaysDate}.sql
zip backup backupname${todaysDate}.sql
uuencode backup.zip backupname${todaysDate}.zip | mail test@example.com -s"Database backup ${todaysDate}"
rm backupname${todaysDate}.sql
rm backup.zip
Thanks,
Regards,
Wesley