Date: Sun, 18 Jul 2004 21:05:58 +0530 From: Shantanoo <freebsd@dhumketu.cjb.net> To: Carla Neves <carla.neves@nereus.pt> Cc: freebsd-questions@freebsd.org Subject: Re: How to send attached files on sendmail with mail tool? Message-ID: <20040718153558.GB616@dhumketu.homeunix.net> 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 Neves [freebsd] [16-07-04 21:36 +0100]: | 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 I don't think you can do it. I would have used mutt in such case. e.g. echo "contents of the bodt" | mutt -a attach_file -s "subject" recipent@example.com Hope this helps. Shantanoo | | ------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040718153558.GB616>