Date: Mon, 19 Jul 2004 10:38:49 +1000 From: Murray Taylor <murraytaylor@bytecraftsystems.com> To: carla.neves@nereus.pt Cc: freebsdquestions <freebsd-questions@freebsd.org> Subject: Re: How to send attached files on sendmail with mail tool? Message-ID: <1090197528.91088.68.camel@wstaylorm.dand06.au.bytecraft.au.com> In-Reply-To: <200407162036.i6GKaNt11099@www.plutao.lusodigital.net> References: <200407162036.i6GKaNt11099@www.plutao.lusodigital.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Carla, cat file | uuencode tgt_filname | mail -s "subject" test@example.com You can send .tgz, .tar.gz, .xls, .csv, ... files using this method.. Ie any file at all as the uuencode does all the necessaries to make the file into 7bit ascii. subject can be derived from shell script variables if necessary. mjt On Sat, 2004-07-17 at 06:36, Carla Neves wrote: > Hi Dear all, > I'm doing some scripts to automaticly deliver to some email accounts > Unix system printouts. I'm using sendmail on Freebsd 4.9 and the mail > tool to send my emails. What I would like to know is: is it possible > to send emails with files attached using the sendmail and the mail > tool? Which syntax should I aply to send an attached file in the > message? > > I would appreciate your help. > > P.S: I' using this syntax so far for sending emails > > mail -s "Automatic Message" recipient@example.com <<E_O_M > The contents of the message goes here. > > E_O_M > > or to pipe stuff directly into sendmail: > > /usr/sbin/sendmail -t -oi -oem <<E_O_M > To: recipient@example.com > Subject: Automatic Message > > The contents of the message goes here. > > As much as you like, really. > > E_O_M > > > Regards, > Carla > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > **************************************************************** > This Email has been scanned for Viruses by MailMarshal. > **************************************************************** -- Murray Taylor Special Projects Engineer --------------------------------- Bytecraft Systems & Entertainment P: +61 3 8710 2555 F: +61 3 8710 2599 D: +61 3 9238 4275 M: +61 417 319 256 E: murraytaylor@bytecraftsystems.com or visit us on the web http://www.bytecraftsystems.com http://www.bytecraftentertainment.com --------------------------------------------------------------- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --------------------------------------------------------------- **************************************************************** This Email has been scanned for Viruses by MailMarshal. ****************************************************************
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1090197528.91088.68.camel>