<?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 file attachment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095755#M145852</link>
    <description>My favorite method is to use elm because multiple attachments with text in-between is so easy. Elm will work just fine from the command line as well as interactively. I have scripts that use it that are run everyday. &lt;BR /&gt;&lt;BR /&gt;Within the body of your email add this: &lt;BR /&gt;&lt;BR /&gt;------------------------------------ &lt;BR /&gt;&lt;BR /&gt;This is my text. How are you? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[include /tmp/myattach application/octet-stream base] &lt;BR /&gt;&lt;BR /&gt;This is some more text in the middle. &lt;BR /&gt;&lt;BR /&gt;[include /tmp/myexcel.xls application/ms-excel base] &lt;BR /&gt;&lt;BR /&gt;This is a closing message in the email. &lt;BR /&gt;&lt;BR /&gt;---------------------------------------- &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method. If you are running 10.20 make sure that you have a MIME enabled version of elm (PHNE_15835 or later). &lt;BR /&gt;&lt;BR /&gt;Then to use it from a script: &lt;BR /&gt;elm -s "My Subject" user@mailserver.com &amp;lt; myletter &lt;BR /&gt;&lt;BR /&gt;Where myletter contains the attachment include statement as well as your message text. It is also necessary that you have a .elm directory &lt;BR /&gt;under the sender's home directory because unlike the interactive version of elm the command-line version will not create a .elm directory automatically. &lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
    <pubDate>Fri, 17 Oct 2003 09:37:22 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-10-17T09:37:22Z</dc:date>
    <item>
      <title>Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095750#M145847</link>
      <description>Hi guys i have two questions firstly i have written a script in which i need to send a file attachment via either sendamail or mailx,&lt;BR /&gt;i have looked at both man pages and maybe im giong blind, but i can't see and option to allow this&lt;BR /&gt;can anyone tell me how.&lt;BR /&gt;also i have stopped recieving forum notification updates and i used to and haven't changed anything, but yet don't recieve them anymore.&lt;BR /&gt;regards&lt;BR /&gt;andy</description>
      <pubDate>Fri, 17 Oct 2003 04:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095750#M145847</guid>
      <dc:creator>system administrator_15</dc:creator>
      <dc:date>2003-10-17T04:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095751#M145848</link>
      <description>Hi Andy,&lt;BR /&gt;&lt;BR /&gt;Try next link.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xfb179607df6ed711abdc0090277a778c%2C00.html&amp;amp;forumId=2&amp;amp;admit=716493758+1066383722274+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xfb179607df6ed711abdc0090277a778c%2C00.html&amp;amp;forumId=2&amp;amp;admit=716493758+1066383722274+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 17 Oct 2003 04:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095751#M145848</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-10-17T04:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095752#M145849</link>
      <description># uuencode &lt;ATTACHED_FILE&gt; &lt;NEW_NAME&gt; |mail user@domain.com&lt;/NEW_NAME&gt;&lt;/ATTACHED_FILE&gt;</description>
      <pubDate>Fri, 17 Oct 2003 04:42:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095752#M145849</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-10-17T04:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095753#M145850</link>
      <description>Forum notification is being worked on.&lt;BR /&gt; &lt;BR /&gt;If you are using a relay server for smtp, make sure its patched.  They can play havoc with really perfectly good scripts.&lt;BR /&gt; &lt;BR /&gt;I'm attaching my script though.&lt;BR /&gt; &lt;BR /&gt;Just for reference. Its production.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Fri, 17 Oct 2003 06:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095753#M145850</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-17T06:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095754#M145851</link>
      <description>Get mpack - works great:&lt;BR /&gt;&lt;BR /&gt;mpack/munpack version 1.5 for unix&lt;BR /&gt;&lt;BR /&gt;Mpack and munpack are utilities for encoding and decoding&lt;BR /&gt;(respectively) binary files in MIME (Multipurpose Internet Mail&lt;BR /&gt;Extensions) format mail messages. For compatibility with older forms&lt;BR /&gt;of transferring binary files, the munpack program can also decode&lt;BR /&gt;messages in split-uuencoded format.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/readme.html" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.5/readme.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Fri, 17 Oct 2003 07:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095754#M145851</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-10-17T07:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095755#M145852</link>
      <description>My favorite method is to use elm because multiple attachments with text in-between is so easy. Elm will work just fine from the command line as well as interactively. I have scripts that use it that are run everyday. &lt;BR /&gt;&lt;BR /&gt;Within the body of your email add this: &lt;BR /&gt;&lt;BR /&gt;------------------------------------ &lt;BR /&gt;&lt;BR /&gt;This is my text. How are you? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[include /tmp/myattach application/octet-stream base] &lt;BR /&gt;&lt;BR /&gt;This is some more text in the middle. &lt;BR /&gt;&lt;BR /&gt;[include /tmp/myexcel.xls application/ms-excel base] &lt;BR /&gt;&lt;BR /&gt;This is a closing message in the email. &lt;BR /&gt;&lt;BR /&gt;---------------------------------------- &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method. If you are running 10.20 make sure that you have a MIME enabled version of elm (PHNE_15835 or later). &lt;BR /&gt;&lt;BR /&gt;Then to use it from a script: &lt;BR /&gt;elm -s "My Subject" user@mailserver.com &amp;lt; myletter &lt;BR /&gt;&lt;BR /&gt;Where myletter contains the attachment include statement as well as your message text. It is also necessary that you have a .elm directory &lt;BR /&gt;under the sender's home directory because unlike the interactive version of elm the command-line version will not create a .elm directory automatically. &lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Fri, 17 Oct 2003 09:37:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095755#M145852</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-17T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095756#M145853</link>
      <description>Here is a great script from a poster on &lt;A href="http://www.unix.com" target="_blank"&gt;www.unix.com&lt;/A&gt; MB...&lt;BR /&gt;&lt;BR /&gt;Handles 1 message and 1 attachment.. can be modified to handle multiple attachments.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 10:52:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095756#M145853</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-17T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095757#M145854</link>
      <description>a very simple command for attachments is:&lt;BR /&gt;&lt;BR /&gt;mailx me@myaddress.com &amp;lt; attachmentname</description>
      <pubDate>Fri, 17 Oct 2003 11:46:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095757#M145854</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-10-17T11:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095758#M145855</link>
      <description>Andy-&lt;BR /&gt;As you can see, there are a multitude of good ways to do this.&lt;BR /&gt;In our shop this is one common way using mailx.&lt;BR /&gt;Build the file for the mailx process to look similar to the following:&lt;BR /&gt;mailx -m -s "Hello" someone@somewhere.com &amp;lt;&amp;lt;-END  &lt;BR /&gt;`ux2dos file_name_one | uuencode file_name_one.txt`&lt;BR /&gt;`ux2dos file_name_two | uuencode file_name_two.txt`&lt;BR /&gt;This is all you get.                               &lt;BR /&gt;END &lt;BR /&gt;&lt;BR /&gt;This sends two file attachments  to someone@somewhere.com with a subject of Hello and a body of "This is all you get."&lt;BR /&gt;OR&lt;BR /&gt;From the command line:&lt;BR /&gt;echo "This is all you get." | ux2dos file_name_one | uuencode  file_name_one.txt |ux2dos file_name_two | uuencode file_name_two.txt | mailx -m -s "Hello" someone@somewhere.com &lt;BR /&gt;&lt;BR /&gt;Then there are options to doing a CC and BC as well.&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;dl                                       &lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 12:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095758#M145855</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-10-17T12:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095759#M145856</link>
      <description>Andy -&lt;BR /&gt;Actually, attached is a text file with a number of ways to use mailx.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;dl</description>
      <pubDate>Fri, 17 Oct 2003 12:47:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095759#M145856</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2003-10-17T12:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095760#M145857</link>
      <description>Like Clay, I am a user of the 'include'.  We find it works quite well, especially when using it within a script for multiple files.  You can send them using any number of options, from text to Excel file types...&lt;BR /&gt;&lt;BR /&gt;Here's an old thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F0%2C%2C0x41950559ff7cd4118fef0090279cd0f9%2C00.html&amp;amp;admit=716493758+1066419055845+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F0%2C%2C0x41950559ff7cd4118fef0090279cd0f9%2C00.html&amp;amp;admit=716493758+1066419055845+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Oct 2003 14:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095760#M145857</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2003-10-17T14:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail file attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095761#M145858</link>
      <description>Doug,&lt;BR /&gt;&lt;BR /&gt;your example is only for a message to be sent, not for a TRUE attachment sent with a message.&lt;BR /&gt; &lt;BR /&gt;Unless Im really mistaken, mailx doesnt support attachments, not in the true sense of an attachment. If you want to try, send a binary file wiht mailx and see that you get a jumble of characters... &lt;BR /&gt;&lt;BR /&gt;I believe ELM does allow real attachments, but I have never used that feature.</description>
      <pubDate>Mon, 20 Oct 2003 14:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-file-attachment/m-p/3095761#M145858</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-20T14:12:38Z</dc:date>
    </item>
  </channel>
</rss>

