<?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: Problem with attach in mailx/sendmail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177279#M162263</link>
    <description>In order to make a unix doc readable via a Windows mail system, you use the ux2dos command.&lt;BR /&gt;&lt;BR /&gt;Using sendmail:&lt;BR /&gt;&lt;BR /&gt;(echo "test text\n";cat /etc/passwd | ux2dos | uuencode passwd.txt;echo "\ntest text2") | sendmail address&lt;BR /&gt;&lt;BR /&gt;This sends a mail with the following as the body;&lt;BR /&gt;&lt;BR /&gt;test text&lt;BR /&gt;&lt;BR /&gt;&lt;PASSWD.TXT&gt;   ** as attached file **&lt;BR /&gt;&lt;BR /&gt;test.text2&lt;BR /&gt;&lt;BR /&gt;The \n's are just to insert new lines to make the mail more readable.&lt;BR /&gt;&lt;BR /&gt;the brackets () combine the echo's and cat command into a single output which is passed to sendmail&lt;BR /&gt;&lt;BR /&gt;&lt;/PASSWD.TXT&gt;</description>
    <pubDate>Thu, 29 Jan 2004 06:10:32 GMT</pubDate>
    <dc:creator>Chris Wilshaw</dc:creator>
    <dc:date>2004-01-29T06:10:32Z</dc:date>
    <item>
      <title>Problem with attach in mailx/sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177277#M162261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I triyng to send a mail from HPUX 11.0 as follows:&lt;BR /&gt;&lt;BR /&gt;- Must have subject and body&lt;BR /&gt;- Must have a file attached&lt;BR /&gt;&lt;BR /&gt;I tried:&lt;BR /&gt;&lt;BR /&gt;uencode /tmp/file1.txt file1.txt | mailx -m -s "TEST" adress1@xxx.com&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;uencode /tmp/file1.txt file1.txt | sendmail -v adress1@xxx.com&lt;BR /&gt;&lt;BR /&gt;But, I do not know how to put the body and, in the other side, the attached file (in this case is a text file) arrives in a bad format.&lt;BR /&gt;Does anybody know how to put the body and how to "format" the text in the attachment to be readable as in the source?&lt;BR /&gt;&lt;BR /&gt;Thxs in advance and regards,&lt;BR /&gt;&lt;BR /&gt;R.O.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 05:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177277#M162261</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2004-01-29T05:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with attach in mailx/sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177278#M162262</link>
      <description>You do it like this;&lt;BR /&gt;&lt;BR /&gt;echo "Subject: &lt;SUBJECT&gt;" &amp;gt;/tmp/tempfile.$$&lt;BR /&gt;echo "&lt;MESSAGE body=""&gt;" &amp;gt;&amp;gt;/tmp/tempfile.$$&lt;BR /&gt;uuencode &lt;FILE&gt; &lt;FILE&gt; &amp;gt;&amp;gt;/tmp/tempfile.$$&lt;BR /&gt;&lt;BR /&gt;Then cat it into sendmail;&lt;BR /&gt;&lt;BR /&gt;cat /tmp/tempfile.$$ | sendmail &lt;USER&gt;&lt;BR /&gt;&lt;BR /&gt;Some mail programs may not like using sendmail as it formats differently to mailx, if you have a problem replace sendmail with maix in the cat command above.&lt;BR /&gt;&lt;/USER&gt;&lt;/FILE&gt;&lt;/FILE&gt;&lt;/MESSAGE&gt;&lt;/SUBJECT&gt;</description>
      <pubDate>Thu, 29 Jan 2004 06:08:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177278#M162262</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2004-01-29T06:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with attach in mailx/sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177279#M162263</link>
      <description>In order to make a unix doc readable via a Windows mail system, you use the ux2dos command.&lt;BR /&gt;&lt;BR /&gt;Using sendmail:&lt;BR /&gt;&lt;BR /&gt;(echo "test text\n";cat /etc/passwd | ux2dos | uuencode passwd.txt;echo "\ntest text2") | sendmail address&lt;BR /&gt;&lt;BR /&gt;This sends a mail with the following as the body;&lt;BR /&gt;&lt;BR /&gt;test text&lt;BR /&gt;&lt;BR /&gt;&lt;PASSWD.TXT&gt;   ** as attached file **&lt;BR /&gt;&lt;BR /&gt;test.text2&lt;BR /&gt;&lt;BR /&gt;The \n's are just to insert new lines to make the mail more readable.&lt;BR /&gt;&lt;BR /&gt;the brackets () combine the echo's and cat command into a single output which is passed to sendmail&lt;BR /&gt;&lt;BR /&gt;&lt;/PASSWD.TXT&gt;</description>
      <pubDate>Thu, 29 Jan 2004 06:10:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177279#M162263</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2004-01-29T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with attach in mailx/sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177280#M162264</link>
      <description>You may also use metasend from &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Networking/Mail/mm-2.7/." target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Networking/Mail/mm-2.7/.&lt;/A&gt;&lt;BR /&gt;With metasend you have also the possibility to attach multiple files at the same time.&lt;BR /&gt;It will handle all email headers according with the MIME type you specify on the command line.&lt;BR /&gt;Best regards,&lt;BR /&gt;Virgil</description>
      <pubDate>Thu, 29 Jan 2004 06:58:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177280#M162264</guid>
      <dc:creator>Virgil Chereches_2</dc:creator>
      <dc:date>2004-01-29T06:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with attach in mailx/sendmail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177281#M162265</link>
      <description>Try the script i'm attaching.&lt;BR /&gt;&lt;BR /&gt;Its production, you can take pieces of it.&lt;BR /&gt;&lt;BR /&gt;If it fails, have your smtp relay server checked.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 29 Jan 2004 07:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-attach-in-mailx-sendmail/m-p/3177281#M162265</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-29T07:11:56Z</dc:date>
    </item>
  </channel>
</rss>

