<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
<br>
Alexander Dalloz wrote:
<blockquote cite="mid1121338354.1574.428.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap="">Am Do, den 14.07.2005 schrieb Hany Nagaty um 12:09:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I'd like to send an email containing an attachmnet using a script.
I've tried the mail command (in the mailx package), but I don't know
how can I use it to send an attachment.

So, is there a way I can use mail to send an attachment, or is there
other utility to do the job.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
uuencode foo.gif /dev/stdout | mail -s "my subject line"
<a class="moz-txt-link-abbreviated" href="mailto:recipient@target.tld">recipient@target.tld</a>

uuencode part of the sharutils rpm.

Alexander


  </pre>
</blockquote>
make your choice :<br>
<a class="moz-txt-link-freetext" href="http://www.shelldorado.com/articles/mailattachments.html">http://www.shelldorado.com/articles/mailattachments.html</a><br>
I ve been using metamail / metasend for years now,&nbsp; simply the best
solution to send any kind of attachements with lots of diff options<br>
for body, file structure, size ....<br>
<br>
A good example of how it works using those 2 scripts :<br>
<a class="moz-txt-link-freetext" href="http://www.shelldorado.com/scripts/cmds/sendfile">http://www.shelldorado.com/scripts/cmds/sendfile</a><br>
<a class="moz-txt-link-freetext" href="http://www.shelldorado.com/scripts/cmds/getmimetype">http://www.shelldorado.com/scripts/cmds/getmimetype</a><br>
<br>
Cheers <br>
-Philip<br>
<br>
</body>
</html>