<?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: Mail from command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516486#M877928</link>
    <description>There are a few ways you can do this. Chris mentioned uuencode, and here's a thread that rementions that along with my personal favorite the [include statement] along with another way to do this using mpack.  Hope it helps you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;/rcw</description>
    <pubDate>Thu, 12 Apr 2001 12:25:21 GMT</pubDate>
    <dc:creator>Rita C Workman</dc:creator>
    <dc:date>2001-04-12T12:25:21Z</dc:date>
    <item>
      <title>Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516479#M877921</link>
      <description>I want to send file attachments from the commandline (sendmail)&lt;BR /&gt;currently i have only found syntax for elm to send a file as an email not as an attachment.&lt;BR /&gt;The sysntax i have used is :-&lt;BR /&gt; elm -s "subject" User@server &amp;lt; filename&lt;BR /&gt;&lt;BR /&gt;can anyone tell me how to send tha file as an attachment please&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 12 Apr 2001 09:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516479#M877921</guid>
      <dc:creator>ICT Infrastructure</dc:creator>
      <dc:date>2001-04-12T09:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516480#M877922</link>
      <description>This is the hunt for the holy grail as far as I'm concerned, I have included a file in the body of an email  but never as a real attachment. I've asked quite a few people about this and the general responce is that it can't be done (with mailx) at least, wether or not this is true remains to be seen, although I'll be watching closely to see where this one goes!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-ChaZ-&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2001 09:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516480#M877922</guid>
      <dc:creator>Charles Harris</dc:creator>
      <dc:date>2001-04-12T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516481#M877923</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;(cat text; uuencode file1 file1)| mailx user&lt;BR /&gt;&lt;BR /&gt;this example will send a text with an attachement.&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Thu, 12 Apr 2001 09:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516481#M877923</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-04-12T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516482#M877924</link>
      <description>Hi!&lt;BR /&gt;mailx -s "&lt;SUBJECT&gt;" address &amp;lt; &lt;PATH of="" the="" attatchement=""&gt;&lt;BR /&gt;good luck.&lt;/PATH&gt;&lt;/SUBJECT&gt;</description>
      <pubDate>Thu, 12 Apr 2001 11:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516482#M877924</guid>
      <dc:creator>Pedro Sousa</dc:creator>
      <dc:date>2001-04-12T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516483#M877925</link>
      <description>this should help you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;federico</description>
      <pubDate>Thu, 12 Apr 2001 11:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516483#M877925</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2001-04-12T11:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516484#M877926</link>
      <description>Try these command:&lt;BR /&gt;unencode localfilename attachedfilename |sendmail user@hp.com or &lt;BR /&gt;unencode localfilename attachedfilename |mailx user@hp.com</description>
      <pubDate>Thu, 12 Apr 2001 11:26:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516484#M877926</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2001-04-12T11:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516485#M877927</link>
      <description>This has worked for me:&lt;BR /&gt;&lt;BR /&gt;first create a dummy file:&lt;BR /&gt;# cat /tmp/dummy&lt;BR /&gt;[include /tmp/jimbackup.010208.5037.log application/msword base64]&lt;BR /&gt;&lt;BR /&gt;Then issue the elm command:&lt;BR /&gt;elm -s 'test' jim_Moffitt@notes.teradyne.com &amp;lt; /tmp/dummy&lt;BR /&gt;This has worked for me without any problems.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2001 11:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516485#M877927</guid>
      <dc:creator>Jim Moffitt_1</dc:creator>
      <dc:date>2001-04-12T11:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516486#M877928</link>
      <description>There are a few ways you can do this. Chris mentioned uuencode, and here's a thread that rementions that along with my personal favorite the [include statement] along with another way to do this using mpack.  Hope it helps you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9!0,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;/rcw</description>
      <pubDate>Thu, 12 Apr 2001 12:25:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516486#M877928</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-04-12T12:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516487#M877929</link>
      <description>The problem that you will have trying to re-invent the wheel is that sendmail can handle a mime-encoded attachment ONLY!  You can not send raw binary data via email no matter what!!!!!!!!!!!!!!!!!!&lt;BR /&gt;&lt;BR /&gt;This forces many steps!&lt;BR /&gt;1.  mime-encode your file and put it somewhere.  (This is more daunting than it appears as there is no mimencode by nature on HP-UX, and the one on the porting center is partially broken!)&lt;BR /&gt;&lt;BR /&gt;2.  build a file for sendmail which contains the required size, mime-type, and of course syntax for the attachment, and anything else you need with it.  I.E.  Subject, Message Body, etc....  Sendmails syntax, and requirements for empty lines for this is not easy by any means!&lt;BR /&gt;&lt;BR /&gt;There is a patch for ELM on HP-UX which allows attachments with a single file line with the attachment and mime-type.&lt;BR /&gt;&lt;BR /&gt;mail, mailx, and standard elm dont support binary file attachments, only text which is placed as the message body.  I.E.&lt;BR /&gt;mailx -s 'subject' someone@dom.com &amp;lt; /tmp/mailfile.txt&lt;BR /&gt;&lt;BR /&gt;I use the patched elm to send binary attachments where necessary, and include the "include" statement within scripts to make it on the fly and control file names, etc....&lt;BR /&gt;&lt;BR /&gt;Literally I spent 2 days trying to get sendmail to work with the attachments, get a mime encoder working, and only about 20% of the mails worked.  Too much work re-inventing the wheel for me!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Mon, 16 Apr 2001 11:23:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516487#M877929</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2001-04-16T11:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516488#M877930</link>
      <description>Thanks for you help everyone.&lt;BR /&gt;&lt;BR /&gt;I have a soloution with mpack.&lt;BR /&gt;&lt;BR /&gt;Just one more question on this , is there any way to send multiple attachments.&lt;BR /&gt;My current soloution is to tar the files I want to send, but this could be a problem when sending out to user with a lack of winzip or similar.&lt;BR /&gt;&lt;BR /&gt;Any suggestions ??&lt;BR /&gt;&lt;BR /&gt;Once again, everyone thanks for you help</description>
      <pubDate>Thu, 19 Apr 2001 13:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516488#M877930</guid>
      <dc:creator>ICT Infrastructure</dc:creator>
      <dc:date>2001-04-19T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516489#M877931</link>
      <description>See this thread - the author shows a way to do multiple attachments (I have not tried it).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x3da4854994d9d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x3da4854994d9d4118fef0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Wed, 25 Apr 2001 20:24:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-command-line/m-p/2516489#M877931</guid>
      <dc:creator>Andrew Maslin</dc:creator>
      <dc:date>2001-04-25T20:24:19Z</dc:date>
    </item>
  </channel>
</rss>

