Email a GZIP attachment in a bash script
Posted on 2014-01-13
I am trying (and failing) to write a shell script which can email a GZIP archive as an attachment from my web host's shared server. I've tried following multiple sets of instructions found online with little success. Sometimes the email comes through in gobbledygook (looks like the GZIP file is inline rather than attached), sometimes the GZIP file is present but can't be opened in 7-Zip, sometimes the scripts I've based off of just fail.
So I'd like to start afresh. The web host has (unfortunately) no mutt available, so that easy solution is off the table.
Has anyone got a working script sample I can adapt?