<?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: Using mailx to sned file as attachment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200075#M166472</link>
    <description>You can also use mpack:&lt;BR /&gt;&lt;BR /&gt;Mpack and munpack are utilities for encoding&lt;BR /&gt; and decoding (respectively) binary files in&lt;BR /&gt; MIME (Multipurpose Internet Mail Extensions)&lt;BR /&gt; format mail messages.  &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Tue, 24 Feb 2004 09:16:48 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2004-02-24T09:16:48Z</dc:date>
    <item>
      <title>Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200069#M166466</link>
      <description>Hi ! Need help how can I send files as attachment using mailx?&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 23 Feb 2004 19:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200069#M166466</guid>
      <dc:creator>KAMARULZAMAN HJ ALI</dc:creator>
      <dc:date>2004-02-23T19:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200070#M166467</link>
      <description>I don't know how to do it with mailx&lt;BR /&gt;&lt;BR /&gt;I do have a very flexible script that does it with sendmail.&lt;BR /&gt;&lt;BR /&gt;See attachment.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 23 Feb 2004 19:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200070#M166467</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-23T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200071#M166468</link>
      <description>This is how to send one or more:&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&lt;BR /&gt;&lt;BR /&gt;Make sure that you use the correct suffix for the file being used.</description>
      <pubDate>Mon, 23 Feb 2004 20:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200071#M166468</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-02-23T20:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200072#M166469</link>
      <description>You can also do it within a script that also sends some output of other commands in between, like backup commands etc:{echo "start of email, with attaching a text file\n"ux2dos textfile1.txt | uuencode textfile1.txtecho "\n start of some command"&lt;YOURCOMMANDS here=""&gt;echo "now send binary file\n"uuencode binaryfile1.bin binaryfile1.binecho "\n end of email, blabla...."}| mailx -m -s "mymail" username@domain.comHTH,Peter Geluk&lt;/YOURCOMMANDS&gt;</description>
      <pubDate>Tue, 24 Feb 2004 01:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200072#M166469</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-02-24T01:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200073#M166470</link>
      <description>Refer this link,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unixblog.com/quick_unix_tips/mailx_and_attachments.php" target="_blank"&gt;http://www.unixblog.com/quick_unix_tips/mailx_and_attachments.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Tue, 24 Feb 2004 01:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200073#M166470</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-02-24T01:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200074#M166471</link>
      <description>Just a new post to make preavious readable. The previous was messed up because I used Konqueror to post it.(Now mozilla)&lt;BR /&gt;************************************&lt;BR /&gt;&lt;BR /&gt;You can also do it within a script that also sends some output of other commands in between, like backup commands etc:&lt;BR /&gt;{&lt;BR /&gt;echo "start of email, with attaching a text file\n"&lt;BR /&gt;ux2dos textfile1.txt | uuencode textfile1.txt&lt;BR /&gt;echo "\n start of some command"&lt;BR /&gt;&lt;YOURCOMMANDS here=""&gt;&lt;BR /&gt;echo "now send binary file\n"&lt;BR /&gt;uuencode binaryfile1.bin binaryfile1.bin&lt;BR /&gt;echo "\n end of email, blabla...."&lt;BR /&gt;}| mailx -m -s "mymail" username@domain.com&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Peter Geluk&lt;/YOURCOMMANDS&gt;</description>
      <pubDate>Tue, 24 Feb 2004 05:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200074#M166471</guid>
      <dc:creator>Hoefnix</dc:creator>
      <dc:date>2004-02-24T05:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200075#M166472</link>
      <description>You can also use mpack:&lt;BR /&gt;&lt;BR /&gt;Mpack and munpack are utilities for encoding&lt;BR /&gt; and decoding (respectively) binary files in&lt;BR /&gt; MIME (Multipurpose Internet Mail Extensions)&lt;BR /&gt; format mail messages.  &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 24 Feb 2004 09:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200075#M166472</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-24T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using mailx to sned file as attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200076#M166473</link>
      <description>Couple points here to consider:&lt;BR /&gt;mailx is a messaging/broadcasting utility.  Not a true emailing utility like elm or sendmail.  With that said....&lt;BR /&gt;&lt;BR /&gt;There a few ways to do this...&lt;BR /&gt;&lt;BR /&gt;uuencode is one, but if your using this for clients you could run into issues of decoding it.&lt;BR /&gt;&lt;BR /&gt;Then there is a third party software you could use like mpack.  Can't comment on this, but folks on the Forums have used it.&lt;BR /&gt;&lt;BR /&gt;My personal favorite is to use the include statement.  It's quick &amp;amp; easy and great for scripting with..In other words you have a file, can be any kind, even an Excel spreadsheet on your UNIX box.  You simply create dummy include file (I'll call it include.file) with the following information to point to the file to be attached:&lt;BR /&gt;&lt;BR /&gt;[include &lt;PATH&gt; application/msexcel base64]&lt;BR /&gt;&lt;BR /&gt;or maybe for a simple text file:&lt;BR /&gt;[include &lt;PATH&gt; text/plain base64]&lt;BR /&gt;&lt;BR /&gt;and from your command line:&lt;BR /&gt;elm -s "This is a test" yourname@company.com &amp;lt; include.file&lt;BR /&gt;&lt;BR /&gt;To see more examples of this subject just do a search  and browse and enjoy...&lt;BR /&gt;&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PATH&gt;&lt;/PATH&gt;</description>
      <pubDate>Tue, 24 Feb 2004 10:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mailx-to-sned-file-as-attachment/m-p/3200076#M166473</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2004-02-24T10:08:19Z</dc:date>
    </item>
  </channel>
</rss>

