<?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: Mailx with attachments / versions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547504#M876444</link>
    <description>Bev-&lt;BR /&gt;&lt;BR /&gt;We "wrap" the attachment between a MIME header file and a trailer file. The header file tells the mail system that this will be a multi-part message, includes a brief part to be in-line (inside the mail message) explaining how to handle this, definition of how the parts are seperated, and the header for the part where the attachment will be. The header file is cat'ed with the attachment file and the trailer and piped to mailx.&lt;BR /&gt;&lt;BR /&gt;The header looks like this:&lt;BR /&gt;MIME-Version: 1.0&lt;BR /&gt;Content-type: multipart/text; boundary="xxxx"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;--xxxx&lt;BR /&gt;Content-Type: text/plain; charset=US-ASCII; name="BDY.TXT"&lt;BR /&gt;Content-Disposition: inline; filename="BDY.TXT"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;Unix generated report is attached.  &lt;BR /&gt;&lt;BR /&gt;** Please LAUNCH this attachment; do not use VIEW. **&lt;BR /&gt;&lt;BR /&gt;NOTE: For best printing of a 132 column report, when&lt;BR /&gt;in WORDPAD, go to Page Setup on the File menu, change&lt;BR /&gt;the orientation to Landscape and change both the right&lt;BR /&gt;and left margins to 0 (don't worry when they change &lt;BR /&gt;automatically to .2). You also will need to change the&lt;BR /&gt;font to print the full 132.  Go to the Edit menu and&lt;BR /&gt;choose "Select All".  Go to the Format menu and choose&lt;BR /&gt;"Font".  Change the font size from 10 to 9.&lt;BR /&gt;&lt;BR /&gt;--xxxx&lt;BR /&gt;Content-Type: text/plain; charset=US-ASCII; name="REPORT.WRI"&lt;BR /&gt;Content-Disposition: attachment; filename="REPORT.WRI"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;And the trailer looks like this:&lt;BR /&gt;&lt;BR /&gt;--xxxx--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Jul 2001 16:23:01 GMT</pubDate>
    <dc:creator>John McAloon</dc:creator>
    <dc:date>2001-07-02T16:23:01Z</dc:date>
    <item>
      <title>Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547502#M876442</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I really am sorry about yet another post regarding using mailx to force attachments. I have read about 20 other posts regarding this -- and checked all the links for other threads on it. I have tried all the solutions out there. I still get the supposed attachment merged into the message.&lt;BR /&gt;&lt;BR /&gt;I have noticed that many of you have stated that one needs a current copy of ELM or a particular patch or whatever. I am not the Unix sysadm, but have been tasked with finding out how to force attachment from HP-UX 10.20 and 11.0 boxes. Since I am not the sysadm, I really don't know where to find the info concerning versions of the mailx, or elm, or any of the other items. That info alone might help me to solve my issue. &lt;BR /&gt;&lt;BR /&gt;I know we use mailx and elm does not seem to be set up. I tried to use elm from an 11.0 box and received this message:&lt;BR /&gt;------------------------------------------------------------------------&lt;BR /&gt;Notice:&lt;BR /&gt;This version of ELM requires the use of a .elm directory to store your&lt;BR /&gt;elmrc and alias files. I'd like to create the directory .elm for you&lt;BR /&gt;and set it up, but I can't in "batch mode".&lt;BR /&gt;Please run ELM in "normal mode" first.&lt;BR /&gt;------------------------------------------------------------------------&lt;BR /&gt;From a 10.20 box, I received "Mail sent!" The problem is I haven't received it yet. &lt;BR /&gt;&lt;BR /&gt;Please note, I have tried the [include xxxxx] line; uuencode; etc.&lt;BR /&gt;&lt;BR /&gt;I have not tried any third party tools, although I have seen that mpack seems to be rather popular. If anyone could give me more info on mpack or how to find the information regarding elm versions and pathces, I would greatly appreciate it. &lt;BR /&gt;&lt;BR /&gt;My task is basically research and discovery. The decision will be from above.&lt;BR /&gt;&lt;BR /&gt;Thanks a bunch.&lt;BR /&gt;&lt;BR /&gt;Beverly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2001 13:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547502#M876442</guid>
      <dc:creator>Beverly Wixon</dc:creator>
      <dc:date>2001-07-02T13:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547503#M876443</link>
      <description>Hi Beverly,&lt;BR /&gt;&lt;BR /&gt;You have a few issues here.  But maybe (along with others support also) we can get you started.&lt;BR /&gt;First.&lt;BR /&gt;Sendmail is the internet mail transport software.&lt;BR /&gt;...so this must be configured properly to get email in/out properly.  Files as ~/sendmail.cf  ~/resolv.conf  ~/nsswitch.conf are important files to ensure they are set up right based on your inhouse mailing needs.&lt;BR /&gt;Next.&lt;BR /&gt;Mailx is a message processing utility....but....&lt;BR /&gt;elm is mail processing software with user inferace screens.  (Which is why I generally say...elm)&lt;BR /&gt;&lt;BR /&gt;So if your message said sent and you didn't get it...why?&lt;BR /&gt;You may want to test that your Sendmail on your UNIX servers is working...(now I'm no expert on setting up senmail..)&lt;BR /&gt;But to test:&lt;BR /&gt;#sendmail -v -s"test message" user@email.com&lt;BR /&gt;&lt;HIT your="" enter="" key=""&gt;&lt;BR /&gt;type your message on each&lt;BR /&gt;line as you see here&lt;BR /&gt;and when your all done&lt;BR /&gt;type a period to end your message&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;You should see the full details of your message and how it is route (or if it is just hanging...).  So if this works that will show your mail is setup ok on your UNIX box.  If not, you can either post another thread to work through that issue...or maybe someone else will jump in here to help you set up those files I mentioned above, etc.&lt;BR /&gt;&lt;BR /&gt;Now for that issue about elm needs directories.  You should be logged in as yourself (with a home account) and when you type 'elm' on the command line and see this message...check ok to create.  Once created and you type elm the interface mail screen will appear or you could still mail using command line like this:&lt;BR /&gt;elm -s"subject" user@email.com &lt;INCLUDE.FILE&gt;&lt;/INCLUDE.FILE&gt;&lt;BR /&gt;Hope this give you something to get you started,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;&lt;/HIT&gt;</description>
      <pubDate>Mon, 02 Jul 2001 14:31:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547503#M876443</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-07-02T14:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547504#M876444</link>
      <description>Bev-&lt;BR /&gt;&lt;BR /&gt;We "wrap" the attachment between a MIME header file and a trailer file. The header file tells the mail system that this will be a multi-part message, includes a brief part to be in-line (inside the mail message) explaining how to handle this, definition of how the parts are seperated, and the header for the part where the attachment will be. The header file is cat'ed with the attachment file and the trailer and piped to mailx.&lt;BR /&gt;&lt;BR /&gt;The header looks like this:&lt;BR /&gt;MIME-Version: 1.0&lt;BR /&gt;Content-type: multipart/text; boundary="xxxx"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;--xxxx&lt;BR /&gt;Content-Type: text/plain; charset=US-ASCII; name="BDY.TXT"&lt;BR /&gt;Content-Disposition: inline; filename="BDY.TXT"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;Unix generated report is attached.  &lt;BR /&gt;&lt;BR /&gt;** Please LAUNCH this attachment; do not use VIEW. **&lt;BR /&gt;&lt;BR /&gt;NOTE: For best printing of a 132 column report, when&lt;BR /&gt;in WORDPAD, go to Page Setup on the File menu, change&lt;BR /&gt;the orientation to Landscape and change both the right&lt;BR /&gt;and left margins to 0 (don't worry when they change &lt;BR /&gt;automatically to .2). You also will need to change the&lt;BR /&gt;font to print the full 132.  Go to the Edit menu and&lt;BR /&gt;choose "Select All".  Go to the Format menu and choose&lt;BR /&gt;"Font".  Change the font size from 10 to 9.&lt;BR /&gt;&lt;BR /&gt;--xxxx&lt;BR /&gt;Content-Type: text/plain; charset=US-ASCII; name="REPORT.WRI"&lt;BR /&gt;Content-Disposition: attachment; filename="REPORT.WRI"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;And the trailer looks like this:&lt;BR /&gt;&lt;BR /&gt;--xxxx--&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2001 16:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547504#M876444</guid>
      <dc:creator>John McAloon</dc:creator>
      <dc:date>2001-07-02T16:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547505#M876445</link>
      <description>This is usually done by having metamail bundle up all the headings and such for you.&lt;BR /&gt;&lt;BR /&gt;HP-UX bundles pieces of metamail, but not enough of it to do what you want.  You can pick up the rest of it from &lt;A href="ftp://thumper.bellcore.com/pub/nsb/mm2.7.tar.Z" target="_blank"&gt;ftp://thumper.bellcore.com/pub/nsb/mm2.7.tar.Z&lt;/A&gt;</description>
      <pubDate>Mon, 02 Jul 2001 18:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547505#M876445</guid>
      <dc:creator>Chris Calabrese</dc:creator>
      <dc:date>2001-07-02T18:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547506#M876446</link>
      <description>Thank you all for your comments and suggestions. I passed the information to my Sr. DBA.&lt;BR /&gt;&lt;BR /&gt;I was able to get elm to work. Thank you, Rita. I just didn't want to mess up any configurations, so it was nice to find out that just saying "yes" would not create havoc.&lt;BR /&gt;&lt;BR /&gt;But, now I have another question. We use HP's and Suns here. Is elm available for both? Or is it only available in HP's Unix? &lt;BR /&gt;&lt;BR /&gt;Again, thank you all so very much.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jul 2001 17:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547506#M876446</guid>
      <dc:creator>Beverly Wixon</dc:creator>
      <dc:date>2001-07-10T17:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547507#M876447</link>
      <description>I have only touched a couple Sun boxes...never 'really' worked on them....so.... I believe Sun has sendmail and mailx....but I can't say for a certain it has elm...&lt;BR /&gt;If someone (who knows 100%) doesn't respond here, you might repost the question on it's own merits.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita</description>
      <pubDate>Tue, 10 Jul 2001 17:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547507#M876447</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-07-10T17:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mailx with attachments / versions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547508#M876448</link>
      <description>No, As far as I know elm is not available in SUN's prior versions, I am not aware of latest version.&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;satish.</description>
      <pubDate>Tue, 10 Jul 2001 18:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-with-attachments-versions/m-p/2547508#M876448</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-07-10T18:50:17Z</dc:date>
    </item>
  </channel>
</rss>

