On Mon, 10 Feb 2025 11:38:43 -0500 Tug Williams <[email protected]> wrote:
> echo -e "Subject:midnight report for $reportDate\n$(cat $targetFile)" > | sendmail -f "[email protected]" -t "[email protected]" You can also use mail, which on Debian is packaged in mailutils. mail -s "Midnight report for $reportDate" \ -r [email protected] [email protected] < $targetFile which is probably safer than catting some random file and having "echo -e" process escape sequences. Internally, mail invokes sendmail for you, so you get the nice queueing behaviour. Regards, Dianne. To unsubscribe send a blank message to [email protected] To get help send a blank message to [email protected] To visit the archives: https://lists.linux-ottawa.org
