I want to send log files matching date format, e.g. YYYY-MM-DD-*.log as attachments in Perl script. In BASH, this can be easily done by: [ -f $DIR/explog/$(date "+%Y-%m-%d")-*-host1.log ] && ...
How can I send emails from the command line with recipient tab-completion and proper file attachment?
A year ago I tried a couple of different email senders because I wanted to simplify sending emails from the command line. There are a couple of tools for it, I tried (I don't remember exactly): ...