<?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 Attachments in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570046#M873113</link>
    <description>I am looking for a mail program that will allow me to attach files to an email.  I need it to be a attachment!  All the programs I have tried just allow me to append the data from the attachment to the e-mail.  Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank You,</description>
    <pubDate>Fri, 24 Aug 2001 18:36:28 GMT</pubDate>
    <dc:creator>John Booth_1</dc:creator>
    <dc:date>2001-08-24T18:36:28Z</dc:date>
    <item>
      <title>Attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570046#M873113</link>
      <description>I am looking for a mail program that will allow me to attach files to an email.  I need it to be a attachment!  All the programs I have tried just allow me to append the data from the attachment to the e-mail.  Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thank You,</description>
      <pubDate>Fri, 24 Aug 2001 18:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570046#M873113</guid>
      <dc:creator>John Booth_1</dc:creator>
      <dc:date>2001-08-24T18:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570047#M873114</link>
      <description>How about???&lt;BR /&gt;&lt;BR /&gt;uuencode filename filename | mailx -m -s "Subject" his.name@his.domain.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Fri, 24 Aug 2001 18:43:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570047#M873114</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-08-24T18:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570048#M873115</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;There are multiple ways you can do this.&lt;BR /&gt;&lt;BR /&gt;Joseph already gave one such way.&lt;BR /&gt;&lt;BR /&gt;Elm is another mail program you can use(though it isn't very straight forward or easy). This thread talks about that. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2001 19:12:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570048#M873115</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-08-24T19:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570049#M873116</link>
      <description>Hi&lt;BR /&gt;Many ways&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4be6f9beca68d511abcd0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4be6f9beca68d511abcd0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2001 19:19:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570049#M873116</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-08-24T19:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Attachments</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570050#M873117</link>
      <description>Perl's MIME::Entity can be used to add MIME attachments&lt;BR /&gt;to an SMTP mail message.  If your SMTP &amp;lt;-&amp;gt; whatever&lt;BR /&gt;mail gateway is halfway decent it ought to be able to&lt;BR /&gt;access the MIME attachments.  Example:&lt;BR /&gt;&lt;BR /&gt;use MIME::Entity;&lt;BR /&gt;&lt;BR /&gt;$toAddress = 'somebody@somewhere.com';&lt;BR /&gt;$body = 'this is the message body';&lt;BR /&gt;$filename = 'somefile.gif';&lt;BR /&gt;$buf = '';&lt;BR /&gt;&lt;BR /&gt;open(FILE, "&amp;lt;$filename");&lt;BR /&gt;while (1) {&lt;BR /&gt;    last if (read(FILE, $chunk, 65536) == 0);&lt;BR /&gt;    $buf .= $chunk;&lt;BR /&gt;}&lt;BR /&gt;close(FILE);&lt;BR /&gt;&lt;BR /&gt;$mime = build MIME::Entity(Type    =&amp;gt; 'multipart/mixed',&lt;BR /&gt;      To      =&amp;gt; $toAddress,&lt;BR /&gt;      Subject =&amp;gt; 'file transmission');&lt;BR /&gt;$mime-&amp;gt;attach(Type        =&amp;gt; 'text/plain',&lt;BR /&gt;       Disposition =&amp;gt; 'inline',&lt;BR /&gt;       Encoding    =&amp;gt; 'quoted-printable',&lt;BR /&gt;       Data        =&amp;gt; $body);&lt;BR /&gt;$mime-&amp;gt;attach(Type        =&amp;gt; 'application/octet-stream',&lt;BR /&gt;       Filename    =&amp;gt; $filename,&lt;BR /&gt;       Disposition =&amp;gt; 'attachment',&lt;BR /&gt;       Encoding    =&amp;gt; 'base64',&lt;BR /&gt;       Data        =&amp;gt; $buf);&lt;BR /&gt;&lt;BR /&gt;open(MAIL, "| /usr/sbin/sendmail $toAddress");&lt;BR /&gt;print(MAIL $mime-&amp;gt;stringify());&lt;BR /&gt;close(MAIL);&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Aug 2001 19:06:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/attachments/m-p/2570050#M873117</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2001-08-27T19:06:23Z</dc:date>
    </item>
  </channel>
</rss>

