George Sexton wrote:
> On Thu, 23 Sep 2004 17:33:24 +0100, abc wrote:
>
>
>>
>>hmmm thanks for that but i dont appear to have a -a funtion on my mail
>>command.
>
>
> Do you have nail?
>
How about using a here-document?
The following works for me.
Change the addressee, from headers and all that.
#! /bin/bash
#
# IRSforms -- reminder run from cron to mail IRS 1040ES forms
#
#
#
/usr/sbin/sendmail nobody.TakeThisOut@example.com <<End-of-Message
To: nobody.TakeThisOut@example.com
From: reminder-service.TakeThisOut@example.com
Subject: [Reminder] IRS 1040ES due quarterly
This is your reminder that IRS forms and a check is
due quarterly.
15-Apr, 15-Jun, 15-Sep, 15-Jan.
To keep the books looking better, pay the 15-Jan
payment in December (keep it in the same year!).
Regards,
The reminder service
End-of-Message
--
The email address in the From: line of this message is a
spamtrap. Mail sent to this address may get the sender's
mailserver listed in one or more DNSBLs. -- Rex Karz<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: how to get cron to email a file as an attachment every day?