<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using a script to e-mail multiple MIME attachments in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511757#M895535</link>
    <description>Hello everyone.  This may sound trival, but I am trying to use a shell script to e-mail all tiff files located in a directory (one tiff per e-mail).  However, when trying to use elm, the attachments seem to get converted to some other format, and is no longer a MIME attachment, but distorted text.  mailx doesn't seem to do the trick either.  Does anyone know how I do this, so that the e-mail receiver will have the proper MIME attachment and not jumbled text.  Please advise.  Thanks.&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BTW, here is the simple shell that I was using.&lt;BR /&gt;The only way that I've gotten it to work is to use dtmail, however, dtmail brings up a window for every message you want to send, which has too much manual input.&lt;BR /&gt;&lt;BR /&gt;### here's one that doesn't give the &lt;BR /&gt;## attachment format&lt;BR /&gt;&lt;BR /&gt;for i in ~/tar_tif_files/*&lt;BR /&gt;do&lt;BR /&gt;elm -s "tiff $i"  fax@feel.mk.telcordia.com &amp;lt; $i&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;##  This one works as far as attachments go&lt;BR /&gt;## but causes you to manually&lt;BR /&gt;## address each individual e-mail.&lt;BR /&gt;&lt;BR /&gt;for i in ~/tar_tif_files/*tif&lt;BR /&gt;do&lt;BR /&gt;        /usr/dt/bin/dtmail -a $i&lt;BR /&gt;done&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Mar 2001 15:48:11 GMT</pubDate>
    <dc:creator>Anthony Baldwin</dc:creator>
    <dc:date>2001-03-30T15:48:11Z</dc:date>
    <item>
      <title>Using a script to e-mail multiple MIME attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511757#M895535</link>
      <description>Hello everyone.  This may sound trival, but I am trying to use a shell script to e-mail all tiff files located in a directory (one tiff per e-mail).  However, when trying to use elm, the attachments seem to get converted to some other format, and is no longer a MIME attachment, but distorted text.  mailx doesn't seem to do the trick either.  Does anyone know how I do this, so that the e-mail receiver will have the proper MIME attachment and not jumbled text.  Please advise.  Thanks.&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;BTW, here is the simple shell that I was using.&lt;BR /&gt;The only way that I've gotten it to work is to use dtmail, however, dtmail brings up a window for every message you want to send, which has too much manual input.&lt;BR /&gt;&lt;BR /&gt;### here's one that doesn't give the &lt;BR /&gt;## attachment format&lt;BR /&gt;&lt;BR /&gt;for i in ~/tar_tif_files/*&lt;BR /&gt;do&lt;BR /&gt;elm -s "tiff $i"  fax@feel.mk.telcordia.com &amp;lt; $i&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;##  This one works as far as attachments go&lt;BR /&gt;## but causes you to manually&lt;BR /&gt;## address each individual e-mail.&lt;BR /&gt;&lt;BR /&gt;for i in ~/tar_tif_files/*tif&lt;BR /&gt;do&lt;BR /&gt;        /usr/dt/bin/dtmail -a $i&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Mar 2001 15:48:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511757#M895535</guid>
      <dc:creator>Anthony Baldwin</dc:creator>
      <dc:date>2001-03-30T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a script to e-mail multiple MIME attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511758#M895536</link>
      <description>I think that this will do the trick.&lt;BR /&gt;&lt;BR /&gt;F1="myfile.txt"&lt;BR /&gt;echo "Any text you like" &amp;gt; $F1&lt;BR /&gt;echo "more header." &amp;gt;&amp;gt; $F1&lt;BR /&gt;for i in ~/tar_tif_files&lt;BR /&gt;  do&lt;BR /&gt;     echo "[include ${i} \c" &amp;gt;&amp;gt; $F1&lt;BR /&gt;     echo "application/octet-stream base 64]" &amp;gt;&amp;gt; $F1&lt;BR /&gt;  done&lt;BR /&gt;echo "Any text you like as a trailer." &amp;gt;&amp;gt; $F1&lt;BR /&gt;elm -s "Subject Text" fax@feel.mk.tel &amp;lt; $F1&lt;BR /&gt;&lt;BR /&gt;You must have a MIME enabled version of elm (PHNE-15835 on 10.20).&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Mar 2001 16:04:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511758#M895536</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-03-30T16:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a script to e-mail multiple MIME attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511759#M895537</link>
      <description>try this..&lt;BR /&gt;uuencode 'file name' 'attachment name' | sendmail -v address</description>
      <pubDate>Fri, 30 Mar 2001 16:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511759#M895537</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-03-30T16:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using a script to e-mail multiple MIME attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511760#M895538</link>
      <description>Here's a copy of something I wrote because I have to run some daily system performance jobs and email the files....your welcome to check it out...&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Fri, 30 Mar 2001 16:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511760#M895538</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-03-30T16:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using a script to e-mail multiple MIME attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511761#M895539</link>
      <description>I had to go back and get some more info...on my script I'm sending them as application/msword, but you mentioned you need to send tiff files. MIME will support this according to:&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=a10342b301d231f7ca/screen=ckiDisplayDocument?docId=200000030894932" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=a10342b301d231f7ca/screen=ckiDisplayDocument?docId=200000030894932&lt;/A&gt;&lt;BR /&gt;There is also this thread:&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/cki/bin/doc.pl/sid=d79542db1c1eeb1c8c/screen=ckiDisplayDocument?docId=200000048789276" target="_blank"&gt;http://us-support.external.hp.com/cki/bin/doc.pl/sid=d79542db1c1eeb1c8c/screen=ckiDisplayDocument?docId=200000048789276&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Fri, 30 Mar 2001 16:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-a-script-to-e-mail-multiple-mime-attachments/m-p/2511761#M895539</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-03-30T16:42:02Z</dc:date>
    </item>
  </channel>
</rss>

