On 07/12/2017 12:58 PM, Gary Dale wrote:
I just spent about an hour with Google trying to fix a bash script that
worked last year. The problem was that it stopped sending attachments.
In the course of my research I found that mail / mailx over the years
has used a variety of flags for attachments but now seems to have
dropped the capability entirely. At one point -a <filename> would attach
a file. At another, mailx adopted -A <filename> to do it. Lately neither
program seems to support attachments.
Fortunately I eventually found s-nail which seems to be a drop-in
replacement for the older mail / mailx programs. However I remain
puzzled by the loss of support for attachments. Even all the web pages
describing different options for adding attachments have got good
examples of why it is needed.
Why did the mail / mailx developers drop support for attachments?
The "mailutils" package provides "mail" with the -A, --attach=FILE option.