<?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: send email with attachment in command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427699#M775162</link>
    <description>another option for you would be to use:&lt;BR /&gt;&lt;BR /&gt;#uuencode your_file_name | sendmail -v user@mail &lt;BR /&gt;&lt;BR /&gt;There has been alot of interest in this area, for some other ideas, use the search button and search for "attachment"&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Jun 2000 10:54:06 GMT</pubDate>
    <dc:creator>Dale McNamara</dc:creator>
    <dc:date>2000-06-27T10:54:06Z</dc:date>
    <item>
      <title>send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427697#M775160</link>
      <description>Please help.  &lt;BR /&gt;&lt;BR /&gt;I need to find out how to send attachment in HP-UX command line?  I have successfully send attachment using ELM interactive mode.</description>
      <pubDate>Tue, 27 Jun 2000 01:48:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427697#M775160</guid>
      <dc:creator>walter lee_1</dc:creator>
      <dc:date>2000-06-27T01:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427698#M775161</link>
      <description># elm -s "subject" user@host &amp;lt; attach.file&lt;BR /&gt;&lt;BR /&gt;This will work on an ASCII file, if the attachment is binary I think you will have to UUENCODE it.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!</description>
      <pubDate>Tue, 27 Jun 2000 03:41:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427698#M775161</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2000-06-27T03:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427699#M775162</link>
      <description>another option for you would be to use:&lt;BR /&gt;&lt;BR /&gt;#uuencode your_file_name | sendmail -v user@mail &lt;BR /&gt;&lt;BR /&gt;There has been alot of interest in this area, for some other ideas, use the search button and search for "attachment"&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2000 10:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427699#M775162</guid>
      <dc:creator>Dale McNamara</dc:creator>
      <dc:date>2000-06-27T10:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427700#M775163</link>
      <description>I've used an additional utility called mpack that converts messages to a MIME format.  This ensures that it can be read ok by any MIME compatible mail client.&lt;BR /&gt;&lt;BR /&gt;MPACK is available from the HP-UX Software portal.&lt;BR /&gt;&lt;BR /&gt;Uuencode doesn't work very well with the Groupwise mail client.</description>
      <pubDate>Tue, 27 Jun 2000 11:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427700#M775163</guid>
      <dc:creator>Mike Gordon</dc:creator>
      <dc:date>2000-06-27T11:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427701#M775164</link>
      <description>I've seen similar requests for this on other messages...and I have sent this before. So I'm sending it again to you...Yes- you can send a file as a TRUE file attachment and actually preserve what the file is...here is the info:&lt;BR /&gt; First make sure you at least have Elm 2.4 on your box, and my example is for  a HPUX 10.20 (you need MIME capability) so be sure you have patch PHNE_15835 (it doesn't cause a reboot to load). &lt;BR /&gt;The next thing you have to do is create a small file (ex include.file) that is used to send the file as an attachment.  There are a few things you could read on this for more details at HP's IT Resource if you want. But simple create a file with this syntax:&lt;BR /&gt;                 [include text.txt text/plain base64]&lt;BR /&gt;&lt;BR /&gt;where text.txt is your file.&lt;BR /&gt;&lt;BR /&gt; The general format is: [include filename type/subtype encoding]&lt;BR /&gt;                      type/subtype= text/plain, image/gif, image/jgp etc..&lt;BR /&gt;                      encoding=base64, quoted-printable etc...&lt;BR /&gt;Another example might be for a Word doc:&lt;BR /&gt;      [include file.doc application/msword base64]&lt;BR /&gt;&lt;BR /&gt;Now from the command line to send this file as an attachment to user_abc:&lt;BR /&gt;   &lt;BR /&gt;     elms -s 'Test attachment file' user_abc@your_org.com &lt;INCLUDE.FILE&gt;&lt;/INCLUDE.FILE&gt;                         ============================================&lt;BR /&gt;&lt;BR /&gt; What this did was email to user_abc@your_org.com the file test.txt with a subject line of Test attachment file. If you sent a Word doc it would come across and be a Word file attachment. It works. &lt;BR /&gt; You can do it with text files; image.jpg or gif files; and more. Just change the include stmt like.....And you can use this and build it right into job streams, so you can then email reports and files when batch jobs are done....It's a real paper saver.&lt;BR /&gt;If you  want to do some lookups on IT Resource for more info. &lt;BR /&gt;                         &lt;BR /&gt;Regards, &lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2000 19:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427701#M775164</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-08-09T19:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427702#M775165</link>
      <description>no it will not work. i think u cannot understand my question. &lt;BR /&gt;when i send a mail from unix box to microsoft outlook. when i  receive in microsoft outlook &lt;BR /&gt;its not attachment.&lt;BR /&gt;suppose if i want to send some attachment from microsoft outlook. there is one option for attachment. like resume.doc and some pdf file like that.</description>
      <pubDate>Mon, 04 Dec 2000 18:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427702#M775165</guid>
      <dc:creator>Rohak</dc:creator>
      <dc:date>2000-12-04T18:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427703#M775166</link>
      <description>Walter, the question you posted seems simple enough. In support of Dale's response, the command he gave you does work. Except the command should be:&lt;BR /&gt;&lt;BR /&gt;# uuencode file_name file_name | sendmail -v nnn.nnnn@eee.com&lt;BR /&gt;&lt;BR /&gt;Specify the filename twice as shown as per man page. &lt;BR /&gt;&lt;BR /&gt;The other solutions will work as well. Have you tried the suggestions?&lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Dec 2000 19:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427703#M775166</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-12-04T19:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: send email with attachment in command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427704#M775167</link>
      <description>Walter,&lt;BR /&gt;&lt;BR /&gt;The Include statement works for doing this. &lt;BR /&gt;I have even zipped files, they were just ascii files on the UNIX box and sent them using the Include coded as if they were Word docs...they came across as attached files and when you clicked on it, MS automatically unzipped it...and voila...&lt;BR /&gt;I can send a file from the UNIX command line and it will appear as a Word or Excel attached file....what's your email???  maybe we could try sending you an excel file and let's see how it comes to you...&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;rcw</description>
      <pubDate>Mon, 04 Dec 2000 19:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-email-with-attachment-in-command-line/m-p/2427704#M775167</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-12-04T19:17:29Z</dc:date>
    </item>
  </channel>
</rss>

