[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How does mailutils "mail" command or cron contact local MTA?



* 2022-09-18 09:00:49-0400, Greg Wooledge wrote:

> In normal usage, scripts should always be calling mailx or an
> equivalent program which is *designed* to create the e-mail headers
> correctly. This is especially true if you're sending attachments.
> Writing the MIME headers and attachment markup yourself is not going
> to be fun.

Mailx, or even better, Mutt:

    mutt  [-nx] [-e command] [-F rcfile] [-b bcc-addr] [-c cc-addr]
          [-s subject] [-a file ... --] to-addr ... < message

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462

Attachment: signature.asc
Description: PGP signature


Reply to: