On Thu, Aug 31, 2000 at 12:57:05PM +0100 or so it is rumoured hereabouts,
Jeremy Smyth thought:
>>> > Using a script. How can i send a file as an attachment
> > via email. Cannot seen anything in the
> > sendmail book.
>> <reply mode="lyda">
>> 1 - it's in the archives about a month ago
That was for me.
> 2 - mutt -a attach.file -s "Subject" recipient at domain.com < /dev/null
> or replace /dev/null with a file containing the body text of the mail
> </reply>
Of course, i didn't have mutt available on the machine in question so I
was stuck with using mail. I found mimencode didn't work in any easy
fashion so I ended up using uuencode. It went something like this:
uuencode <File to attach> <Name of file in email message> | mail -s <subject> <recipient at domain>
--
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!