<?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 attachment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770876#M74636</link>
    <description>Richard, the elm actually worked,  it took the contents of the file and put it in the body of the email.  It is there a way to make a true attachment?</description>
    <pubDate>Wed, 24 Jul 2002 12:12:17 GMT</pubDate>
    <dc:creator>Jeff Hagstrom</dc:creator>
    <dc:date>2002-07-24T12:12:17Z</dc:date>
    <item>
      <title>sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770870#M74630</link>
      <description>How do I attach a text file using send mail at the prompt?&lt;BR /&gt;sendmail -v jsmith@aol.com ............</description>
      <pubDate>Tue, 23 Jul 2002 20:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770870#M74630</guid>
      <dc:creator>Jeff Hagstrom</dc:creator>
      <dc:date>2002-07-23T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770871#M74631</link>
      <description>uuencode file to be attach filename | sendmail email id&lt;BR /&gt;&lt;BR /&gt;For example if yount to attach /etchosts file then&lt;BR /&gt;&lt;BR /&gt;uuencode /etc/hosts hosts.hostname | sendmail jsmith@aol.com&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Tue, 23 Jul 2002 20:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770871#M74631</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-07-23T20:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770872#M74632</link>
      <description>Hi Jeff ,&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;&lt;BR /&gt;elm -s "subject" user@host &amp;lt; attach.file &lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;uuencode [filename] [name you want for attachment] | sendmail xyz@abc.com &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;There are several links on theese and other ways to do it. I am sure we will get a few more on this post. But thoose two always worked for me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;~ Richard</description>
      <pubDate>Tue, 23 Jul 2002 20:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770872#M74632</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-07-23T20:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770873#M74633</link>
      <description>$ uuencode myfile myfile.coded | sendmail -v jsmith@aol.com &lt;BR /&gt;&lt;BR /&gt;Check this thread too .. just a few days back ..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd81f36e69499d611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd81f36e69499d611abdb0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Tue, 23 Jul 2002 20:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770873#M74633</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-23T20:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770874#M74634</link>
      <description>My elm example was wrong. =(&lt;BR /&gt;&lt;BR /&gt;Follow this link and look at &lt;BR /&gt;Ms. Workman's example.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x41950559ff7cd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x41950559ff7cd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;~ Richard&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Jul 2002 20:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770874#M74634</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-07-23T20:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770875#M74635</link>
      <description>Hi Jeff &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ther are lots of ways to do it , elm is pretty standard one , you can download stuff like mpack to do the same thing . You may like to look at this :&lt;BR /&gt;&lt;A href="http://www.stokely.com/unix.sysadm.resources/email.html#attachment.link" target="_blank"&gt;http://www.stokely.com/unix.sysadm.resources/email.html#attachment.link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Tue, 23 Jul 2002 20:53:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770875#M74635</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-07-23T20:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770876#M74636</link>
      <description>Richard, the elm actually worked,  it took the contents of the file and put it in the body of the email.  It is there a way to make a true attachment?</description>
      <pubDate>Wed, 24 Jul 2002 12:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770876#M74636</guid>
      <dc:creator>Jeff Hagstrom</dc:creator>
      <dc:date>2002-07-24T12:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770877#M74637</link>
      <description>hi Jeff,&lt;BR /&gt;&lt;BR /&gt;The link I pointed you to in my last post has a great example on how to make it a true attachment using elm. Here is the example that Rita gives.&lt;BR /&gt;&lt;BR /&gt;******************************************* &lt;BR /&gt;if your trying to attach a file and send the file via sendmail as an attachment than you can do this also. &lt;BR /&gt;First make sure you at least have Elm 2.4 on your box, and my example is for a HPUX 10.2 (you need MIME capability) so be sure you have patch PHNE_15835 (it doesn't cause a reboot to load). To give you an example I ftp'd an excel spreadsheet to my box called test.xls Then I did the following: &lt;BR /&gt;First create a dummy file with the following line (just as you see it here) &lt;BR /&gt;[include test.xls application/msexcel base64] &lt;BR /&gt;&lt;BR /&gt;Second from the command line: &lt;BR /&gt;elm -s "This is a test" user@hp.com &lt;DUMMY&gt;&lt;/DUMMY&gt;============================================ &lt;BR /&gt;&lt;BR /&gt;What this did was email to user@hp.com the file test.xls (and it comes as attached excel file) with a subject line of This is a test. &lt;BR /&gt;You can do it with text files; image.jpg or gif files; and more. It's a very handy tool that programmers can add right into the job streams and email reports to users instead of &lt;BR /&gt;printing them....makes for paperless environment. &lt;BR /&gt;&lt;BR /&gt;Here's an example for a simple text file: &lt;BR /&gt;.. just change your include to read something like this: &lt;BR /&gt;[include error.file text/plain base64]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;~Richard</description>
      <pubDate>Wed, 24 Jul 2002 13:01:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770877#M74637</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-07-24T13:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770878#M74638</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;Try with uuencode as tell you Uday, this works fine like an attachment.&lt;BR /&gt;&lt;BR /&gt;If you want to send a body and various files attached, you can do:&lt;BR /&gt;&lt;BR /&gt;cat yourbodyfile &amp;gt;&amp;gt; fich&lt;BR /&gt;uuencode atch_file1 atch_file1 &amp;gt;&amp;gt; fich&lt;BR /&gt;uuencode atch_file2 atch_file2 &amp;gt;&amp;gt; fich&lt;BR /&gt;....&lt;BR /&gt;cat fich | mailx -s "subject" jsmith@aol.com &lt;BR /&gt;&lt;BR /&gt;This works fine for me.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 24 Jul 2002 13:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770878#M74638</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-07-24T13:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770879#M74639</link>
      <description>Hi there, &lt;BR /&gt;&lt;BR /&gt;I would suggest using mutt (available from the HP-UX porting and archive centre) to send mail w/ attachments from the command prompt.  There is an interactive version of this command (just type mutt), but you can also send mail with attachments directly from the command line.  The general syntax for this operation would be:&lt;BR /&gt;&lt;BR /&gt; # cat body.txt | mutt -a "attachment.doc" -s "Subject of message" person@company.com&lt;BR /&gt;&lt;BR /&gt;(where body.txt is a text file containing the body text of the message you wish to send, and attachment.doc is the file you wish to attach).&lt;BR /&gt;&lt;BR /&gt;There are a couple of nice things about this solution:&lt;BR /&gt;&lt;BR /&gt;1) mutt is powerful and easy-to-use&lt;BR /&gt;2) mail sent in this manner is MIME encoded with the correct Content-type settings.&lt;BR /&gt;3) mutt is rapidly becoming the mail client of choice among various UNIX implementations, so it would be a good thing to know...&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;- Don</description>
      <pubDate>Mon, 28 Oct 2002 21:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770879#M74639</guid>
      <dc:creator>Don Yeske</dc:creator>
      <dc:date>2002-10-28T21:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770880#M74640</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;I had the same problem with the text file being sent in the body instead of as an attachment.  My solution was to lie.  I specify the file like this:&lt;BR /&gt;[include text.txt application/octet-stream base64]&lt;BR /&gt;&lt;BR /&gt;Haven't had the problem since.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 28 Oct 2002 21:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-attachment/m-p/2770880#M74640</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-28T21:25:35Z</dc:date>
    </item>
  </channel>
</rss>

