The old way of doing it
uuencode filename.csv filename.csv | mail -s 'Subject of email' recipient@domain.com'uuencode' was a fairly common tool and was packaged for most Linux variants and was even installed by default on some. Now we have to scavenge a bit, but the tool I have used most is 'mpack'. It is packaged for both Debian and Ubuntu by the distribution, and you can find pre-rolled versions for Redhat/CentOS/etc. Once you get it installed, using it is easy.
The new way of doing it
mpack -s 'Subject of email' filename.csv recipient@domain.com echoHopefully the target doesn't move again.
No comments:
Post a Comment