<?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 attachment  from command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590223#M924751</link>
    <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;I had tried it before I wrote this email. :(&lt;BR /&gt;It doesn't work. I read about patch, which  solve problem with elm but it's for 10.20 and I'm using 11.00. I'm not sure if the problem is in the 11.00.&lt;BR /&gt;&lt;BR /&gt;Problem :&lt;BR /&gt;I have log file from sqlplus in good format, when I recived it via mail so the format is bad. I have idea sent this file like attachment and it's all what I need .... &lt;BR /&gt;&lt;BR /&gt;Thx in advance &lt;BR /&gt;&lt;BR /&gt;Radim&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Oct 2001 11:19:07 GMT</pubDate>
    <dc:creator>Raja_2</dc:creator>
    <dc:date>2001-10-05T11:19:07Z</dc:date>
    <item>
      <title>Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590221#M924749</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I hope,I find answer for my problem. ;)&lt;BR /&gt;&lt;BR /&gt;I need sent text file via mail to Exchange server. I've tried something like this :&lt;BR /&gt;&lt;BR /&gt;mailx -s 'subject' name@domain &amp;lt; file,&lt;BR /&gt;elm -s 'subject' name@domain &amp;lt; file ([include ******])&lt;BR /&gt;&lt;BR /&gt;but not works ....&lt;BR /&gt;&lt;BR /&gt;I can sent attachment via elm menu but I need it from command line ...&lt;BR /&gt;&lt;BR /&gt;Radim</description>
      <pubDate>Fri, 05 Oct 2001 09:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590221#M924749</guid>
      <dc:creator>Raja_2</dc:creator>
      <dc:date>2001-10-05T09:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590222#M924750</link>
      <description>Hi Radim:&lt;BR /&gt;&lt;BR /&gt;Have a look here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x41950559ff7cd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x41950559ff7cd4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 05 Oct 2001 10:30:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590222#M924750</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-05T10:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590223#M924751</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;I had tried it before I wrote this email. :(&lt;BR /&gt;It doesn't work. I read about patch, which  solve problem with elm but it's for 10.20 and I'm using 11.00. I'm not sure if the problem is in the 11.00.&lt;BR /&gt;&lt;BR /&gt;Problem :&lt;BR /&gt;I have log file from sqlplus in good format, when I recived it via mail so the format is bad. I have idea sent this file like attachment and it's all what I need .... &lt;BR /&gt;&lt;BR /&gt;Thx in advance &lt;BR /&gt;&lt;BR /&gt;Radim&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Oct 2001 11:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590223#M924751</guid>
      <dc:creator>Raja_2</dc:creator>
      <dc:date>2001-10-05T11:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590224#M924752</link>
      <description>&lt;BR /&gt;The link James pointed to you is pretty good, have you tried all the replies from it ?&lt;BR /&gt;&lt;BR /&gt;Sending text files to exchange as attachments is easy, use uuencode;&lt;BR /&gt;&lt;BR /&gt;uuencode &lt;FILE.TXT&gt; &lt;FILE.TXT&gt; | mailx ......&lt;BR /&gt;&lt;BR /&gt;Works fine on our site. If mailx no good try using sendmail.&lt;/FILE.TXT&gt;&lt;/FILE.TXT&gt;</description>
      <pubDate>Fri, 05 Oct 2001 11:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590224#M924752</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-10-05T11:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590225#M924753</link>
      <description>Wow,&lt;BR /&gt;&lt;BR /&gt;now I'm cleverer ... &lt;BR /&gt;It works only with sendmail - enough for me.&lt;BR /&gt;One question - I hope last ... :)&lt;BR /&gt;Which parameters I have to use when I want to specify subject, because -s isn't right.</description>
      <pubDate>Fri, 05 Oct 2001 12:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590225#M924753</guid>
      <dc:creator>Raja_2</dc:creator>
      <dc:date>2001-10-05T12:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590226#M924754</link>
      <description>Hi Radim,&lt;BR /&gt;&lt;BR /&gt;With sendmail, you specify the subject in the message body as follows:&lt;BR /&gt;&lt;BR /&gt;Subject: This is the subject&lt;BR /&gt;&lt;EMPTY line=""&gt;&lt;BR /&gt;Rest of message..&lt;BR /&gt;.....&lt;BR /&gt;.....&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;In other words, begin the 1st line with "Subject: ", followed by an empty line (no spaces, tabs, etc.), followed by the rest of the message.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.&lt;/EMPTY&gt;</description>
      <pubDate>Fri, 05 Oct 2001 12:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590226#M924754</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-05T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590227#M924755</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;you're right. &lt;BR /&gt;&lt;BR /&gt;But I'd like have more ... &lt;BR /&gt;Mail with txt file and subject. I'm afraid that this combination isn't possible .. &lt;BR /&gt;&lt;BR /&gt;Do you agree with me ?</description>
      <pubDate>Fri, 05 Oct 2001 12:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590227#M924755</guid>
      <dc:creator>Raja_2</dc:creator>
      <dc:date>2001-10-05T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590228#M924756</link>
      <description>Ah, mailing attachments. One of my favorite things..&lt;BR /&gt;&lt;BR /&gt;Mailing a text file requires alittle 'tweeking', from the command line. Take a look at this thread for some info on this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7d6087dc4d7dd5118ff00090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7d6087dc4d7dd5118ff00090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rita</description>
      <pubDate>Fri, 05 Oct 2001 12:37:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590228#M924756</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2001-10-05T12:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590229#M924757</link>
      <description>Hi Radim,&lt;BR /&gt;&lt;BR /&gt;This worked for me:&lt;BR /&gt;&lt;BR /&gt;==================================&lt;BR /&gt;(echo Subject: This is a test&lt;BR /&gt;&lt;BR /&gt;echo hello ;uuencode /tmp/s.pl /tmp/s.pl) | sendmail robin.wakefield@ubsw.com&lt;BR /&gt;==================================&lt;BR /&gt;&lt;BR /&gt;Let me know how you get on.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 05 Oct 2001 12:43:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590229#M924757</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-05T12:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590230#M924758</link>
      <description>HI&lt;BR /&gt;This is how I use on my machines.&lt;BR /&gt;#/usr/bin/uuencode report.txt report.txt |mailx -m -s "Performance Report for host " &lt;EMAIL-ADDRESS&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.&lt;/EMAIL-ADDRESS&gt;</description>
      <pubDate>Fri, 05 Oct 2001 12:56:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590230#M924758</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-10-05T12:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590231#M924759</link>
      <description>Hi Robert,&lt;BR /&gt;&lt;BR /&gt;it's very handy trick with parenthesis... :)&lt;BR /&gt;I didn't know it.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Radim</description>
      <pubDate>Fri, 05 Oct 2001 13:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590231#M924759</guid>
      <dc:creator>Raja_2</dc:creator>
      <dc:date>2001-10-05T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mail attachment  from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590232#M924760</link>
      <description>Actually, your elm method would have also worked just fine from the command BUT there must be a .elm directory in the sender's home directory. &lt;BR /&gt;&lt;BR /&gt;The include syntax within your mail textfile should be something very close to this:&lt;BR /&gt;[include myfilename application/octet-stream base64]&lt;BR /&gt;&lt;BR /&gt;Where myfilename is your attachment.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Fri, 05 Oct 2001 13:08:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-attachment-from-command-line/m-p/2590232#M924760</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-05T13:08:41Z</dc:date>
    </item>
  </channel>
</rss>

