Sending mail with attachments from a shell script
s.denaxas at gmail.com
Thu Jun 8 15:27:56 BST 2006
Ive used "mailx -s "foo" email at maaddress < attachment" several times and it
works pretty good. Not sure how it works on binary files, but I dont think
it wil break.
On 6/8/06, David Cantrell <david at cantrell.org.uk> wrote:
> On Thu, Jun 08, 2006 at 01:53:54PM +0000, the hatter wrote:
> > On Thu, 8 Jun 2006, David Cantrell wrote:
> > > mutt -a isn't appropriate. Nor is perl.
> > I'm curious as to mhy mutt isn't an appropriate tool - is it some sort
> > allergy to mutt (try antihistamines) or is pine -attach(list) ruled out
> > for some similar reason.
> I ruled out mutt because the script is running from a cronjob, and there
> are things in my .muttrc which aren't available to cron jobs, and so
> mutt still works but whinges to STDERR. I'd not considered pine. I try
> not to usually.
> I ended up using nail, which is fabulous.
> David Cantrell | Reality Engineer, Ministry of Information
> THIS IS THE LANGUAGE POLICE
> PUT DOWN YOUR THESAURUS
> STEP AWAY FROM THE CLICHE
More information about the london.pm