<?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 Re: sendmail with attachment script not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419643#M861941</link>
    <description>I'd use mailx as well...&lt;BR /&gt;&lt;BR /&gt;But, this should work:&lt;BR /&gt;&lt;BR /&gt;uuencode &lt;FILE_TO_SEND&gt; &lt;NAME_FOR_ATTACHMENT&gt; | sendmail someuser@domain.com &lt;BR /&gt;&lt;BR /&gt;This thread may give you some ideas:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183409" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183409&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;/NAME_FOR_ATTACHMENT&gt;&lt;/FILE_TO_SEND&gt;</description>
    <pubDate>Wed, 10 Nov 2004 16:42:12 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2004-11-10T16:42:12Z</dc:date>
    <item>
      <title>sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419641#M861939</link>
      <description>for x in $*&lt;BR /&gt;do&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;uuencode $x.info whatever | sendmail -fsomeuser@domain.com -t &amp;lt; /DR/headerfile&lt;BR /&gt;&lt;SNIP&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This is emailing just fine... only the attachment is not being attached... What is the problem?&lt;BR /&gt;&lt;BR /&gt;Thanks!  &lt;BR /&gt;Tonya Underwood&lt;/SNIP&gt;&lt;/SNIP&gt;</description>
      <pubDate>Wed, 10 Nov 2004 15:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419641#M861939</guid>
      <dc:creator>Tonya Underwood</dc:creator>
      <dc:date>2004-11-10T15:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419642#M861940</link>
      <description>Instead of piping to sendmail, pipe to mail or mailx which will handle the attachment correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Wed, 10 Nov 2004 15:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419642#M861940</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-11-10T15:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419643#M861941</link>
      <description>I'd use mailx as well...&lt;BR /&gt;&lt;BR /&gt;But, this should work:&lt;BR /&gt;&lt;BR /&gt;uuencode &lt;FILE_TO_SEND&gt; &lt;NAME_FOR_ATTACHMENT&gt; | sendmail someuser@domain.com &lt;BR /&gt;&lt;BR /&gt;This thread may give you some ideas:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183409" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=183409&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;/NAME_FOR_ATTACHMENT&gt;&lt;/FILE_TO_SEND&gt;</description>
      <pubDate>Wed, 10 Nov 2004 16:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419643#M861941</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-11-10T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419644#M861942</link>
      <description>I must force it to send with the sender as someuser@domain.com and I am not aware of there being an equivalent -f option in mailx...</description>
      <pubDate>Wed, 10 Nov 2004 17:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419644#M861942</guid>
      <dc:creator>Tonya Underwood</dc:creator>
      <dc:date>2004-11-10T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419645#M861943</link>
      <description>I have accomplshed this task ( script to send uuencoded attachments via sendmail )... but I don't know if there is a simpler or better method than mine. Reading the previous responses to your question leads me to believe that it should possible to do it more easily than I have done, but here is my method; you can use it if you wish and/or if you get no better ideas. I have stripped out extraneous niceties such as handling multiple input files of various formats, input validation, etc. This is (almost) bare minimum. I am constructing the mail and mime headers in my script and including them in my pipe to sendmail. The boundary text is somewhat arbitrary, but not completely. If you try to use this, and if you don't understand how the boundaries are constructed, I suggest you leave them alone ( they way I have them), until you get it working, then modify if you desire.&lt;BR /&gt;&lt;BR /&gt;Here you go...&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;From="me@myplace.com"&lt;BR /&gt;To="whomever@wherever.com"&lt;BR /&gt;Subject="uuencode attach test"&lt;BR /&gt;(&lt;BR /&gt;cat &amp;lt;</description>
      <pubDate>Wed, 10 Nov 2004 18:44:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419645#M861943</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2004-11-10T18:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419646#M861944</link>
      <description>BTW, when you call my script supply one argument, the name of a uuencodeable file, such as a gif file.&lt;BR /&gt;&lt;BR /&gt; - John</description>
      <pubDate>Wed, 10 Nov 2004 18:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419646#M861944</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2004-11-10T18:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419647#M861945</link>
      <description>I always use this example:&lt;BR /&gt;&lt;BR /&gt;for e in `echo file1 file2 file3`&lt;BR /&gt;do&lt;BR /&gt;uuencode $e $e.txt&lt;BR /&gt;done | mailx -m -s "mymail" username@domain.com</description>
      <pubDate>Wed, 10 Nov 2004 18:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419647#M861945</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-11-10T18:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419648#M861946</link>
      <description>OK, even simpler, and improved version of my script, which also does the "sendmail -f" which you require:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;From="john.kittel@kaisertwd.com"&lt;BR /&gt;To="john.kittel@doctor.kaisertwd.com"&lt;BR /&gt;Subject="uuencode attach test"&lt;BR /&gt;(&lt;BR /&gt;echo "Subject: $Subject"&lt;BR /&gt;echo "Mime-Version: 1.0"&lt;BR /&gt;echo "Content-Type: multipart/mixed; boundary=\"KACC.boundary.09112002\""&lt;BR /&gt;Base=`basename $1`&lt;BR /&gt;echo "--KACC.boundary.09112002"&lt;BR /&gt;echo "Content-Disposition: attachment; filename=\"$Base\""&lt;BR /&gt;echo "Content-Type: image; name=\"$Base\"; charset=US-ASCII"&lt;BR /&gt;echo "Content-Transfer-Encoding: uuencode"&lt;BR /&gt;echo ""&lt;BR /&gt;uuencode $1 $1.en&lt;BR /&gt;) | /usr/lib/sendmail -f$From $To&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt; - John</description>
      <pubDate>Wed, 10 Nov 2004 19:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419648#M861946</guid>
      <dc:creator>John Kittel</dc:creator>
      <dc:date>2004-11-10T19:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419649#M861947</link>
      <description>The best I can do is provide a script that works.&lt;BR /&gt;&lt;BR /&gt;My production version. Does a bit more than you like.&lt;BR /&gt;&lt;BR /&gt;Two possibilities here:&lt;BR /&gt;&lt;BR /&gt;1) Compare my methodology to your own and correct your script.&lt;BR /&gt;2) Modify mine to meet your needs.&lt;BR /&gt;&lt;BR /&gt;Note that certain symmantec gateways need to be patched to correctly process these type of scripts. Translation: It may be your smtp gateway and not your script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 10 Nov 2004 19:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419649#M861947</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-10T19:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail with attachment script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419650#M861948</link>
      <description>Thank you all so much... it's working now :)</description>
      <pubDate>Mon, 15 Nov 2004 11:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-with-attachment-script-not-working/m-p/3419650#M861948</guid>
      <dc:creator>Tonya Underwood</dc:creator>
      <dc:date>2004-11-15T11:05:34Z</dc:date>
    </item>
  </channel>
</rss>

