<?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: script send email attachment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629668#M237429</link>
    <description>another that uses mutt...works like a charm.&lt;BR /&gt;&lt;BR /&gt;install on your box, and never look back.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Sep 2005 10:38:42 GMT</pubDate>
    <dc:creator>Manuel Contreras</dc:creator>
    <dc:date>2005-09-20T10:38:42Z</dc:date>
    <item>
      <title>script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629659#M237420</link>
      <description>I am writing a script to send me a report file as attachment.  This file is in pdf format.  What should be content-type and enconding I should specify.&lt;BR /&gt;&lt;BR /&gt;function func_send_email&lt;BR /&gt;{&lt;BR /&gt;        (&lt;BR /&gt;        echo "Content-Type: multipart/mixed"&lt;BR /&gt;        echo "Content-Transfer-Encoding: 8bit"&lt;BR /&gt;        echo "From:$SEND_FROM"&lt;BR /&gt;        echo "To:$1"&lt;BR /&gt;        echo "Subject: $REPORT_TITLE"&lt;BR /&gt;        cat &amp;lt; $2&lt;BR /&gt;        ) | /usr/sbin/sendmail -t&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Sep 2005 21:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629659#M237420</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-09-19T21:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629660#M237421</link>
      <description>One of the easiest and most powerful ways to do this via elm from the command line using the [include] syntax. Multiple attachments with mail text in between is very easy.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Within the body of your email add this: &lt;BR /&gt;&lt;BR /&gt;------------------------------------ &lt;BR /&gt;&lt;BR /&gt;This is my text. How are you? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[include /tmp/myattach application/octet-stream base64] &lt;BR /&gt;&lt;BR /&gt;This is some more text in the middle. &lt;BR /&gt;&lt;BR /&gt;[include /tmp/myexcel.xls application/ms-excel base64] &lt;BR /&gt;&lt;BR /&gt;This is a closing message in the email. &lt;BR /&gt;&lt;BR /&gt;---------------------------------------- &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method. &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Then to use it from a script: &lt;BR /&gt;elm -s "My Subject" user@mailserver.com &amp;lt; myletter &lt;BR /&gt;&lt;BR /&gt;Where myletter contains the attachment include statement(s) as well as your message text. It is also necessary that you have a .elm directory &lt;BR /&gt;under the senders home directory because unlike the interactive version of elm the command-line version will not create a .elm directory automatically. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Sep 2005 22:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629660#M237421</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-09-19T22:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629661#M237422</link>
      <description>Try uuencode.</description>
      <pubDate>Tue, 20 Sep 2005 00:20:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629661#M237422</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-09-20T00:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629662#M237423</link>
      <description>Try use:&lt;BR /&gt;Content-Type:  application/pdf</description>
      <pubDate>Tue, 20 Sep 2005 00:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629662#M237423</guid>
      <dc:creator>morganelan</dc:creator>
      <dc:date>2005-09-20T00:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629663#M237424</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am using the email client mutt for this&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.9/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.9/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is a script to send mail with mutt&lt;BR /&gt;&lt;BR /&gt;DESTIN=your.email@company.com&lt;BR /&gt;SUBJECT="mail from unix server"&lt;BR /&gt;ATTACH1="/etc/passwd"&lt;BR /&gt;ATTACH2="/etc/hosts"&lt;BR /&gt;TEXTFILE=/etc/inittab&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/mutt -a "$ATTACH1" -a "$ATTACH2" -i "$TEXFILE" -s&lt;BR /&gt;"$SUBJECT" $DESTIN &amp;lt;&amp;lt; EOF &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;You don't need to work with uuencode and uudecode</description>
      <pubDate>Tue, 20 Sep 2005 01:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629663#M237424</guid>
      <dc:creator>Luk Vandenbussche</dc:creator>
      <dc:date>2005-09-20T01:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629664#M237425</link>
      <description>I've attached a script I found on this forum I've called mail_files. Instructions on how to use the script are included at the top of the file.</description>
      <pubDate>Tue, 20 Sep 2005 02:51:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629664#M237425</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2005-09-20T02:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629665#M237426</link>
      <description>Use as Content-type: application/pdf&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Tue, 20 Sep 2005 04:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629665#M237426</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-20T04:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629666#M237427</link>
      <description>&lt;A href="http://www.hpux.ws/mailfile2" target="_blank"&gt;http://www.hpux.ws/mailfile2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Sep 2005 04:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629666#M237427</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-09-20T04:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629667#M237428</link>
      <description>Hi Kholikt,&lt;BR /&gt;&lt;BR /&gt;You can include this line to send the attachment with email..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;uuencode filename.ext filename.ext | mailx -s "Attached file from unix" yoruemail@domain.com&lt;BR /&gt;&lt;BR /&gt;Enjoy ,&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 20 Sep 2005 04:58:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629667#M237428</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-20T04:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: script send email attachment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629668#M237429</link>
      <description>another that uses mutt...works like a charm.&lt;BR /&gt;&lt;BR /&gt;install on your box, and never look back.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Sep 2005 10:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-send-email-attachment/m-p/3629668#M237429</guid>
      <dc:creator>Manuel Contreras</dc:creator>
      <dc:date>2005-09-20T10:38:42Z</dc:date>
    </item>
  </channel>
</rss>

