<?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 e-mail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321990#M187552</link>
    <description>Here is what I use regularly and it works quite well.&lt;BR /&gt;&lt;BR /&gt;The following is a single LONG command line:&lt;BR /&gt;&lt;BR /&gt;(echo "Subject: Whatever" ; echo "From: from@somewhere.com" ; uuencode /filename /filename) | /usr/sbin/sendmail to@somewhere.com</description>
    <pubDate>Fri, 02 Jul 2004 16:04:14 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2004-07-02T16:04:14Z</dc:date>
    <item>
      <title>Send e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321989#M187551</link>
      <description>Hi All!&lt;BR /&gt;&lt;BR /&gt; I have to send e-mail from Unix box with the following characteristics:&lt;BR /&gt;&lt;BR /&gt;Send Sender e-mail&lt;BR /&gt;Send Subject&lt;BR /&gt;Send an atached file&lt;BR /&gt;&lt;BR /&gt;I tried a lot of solution that I get here:&lt;BR /&gt;Send with mailx, mail, sendmail, elm...&lt;BR /&gt;1) cat file.txt|mailx -r me@mydomain.com -s Subject to@yourdomain.com.br&lt;BR /&gt;but this solution send a plain text, not atached file.&lt;BR /&gt;&lt;BR /&gt;2)/usr/bin/awk '{print $0 "\r"}' file.txt | /usr/bin/uuencode file.txt | mail you@yourdomain.com&lt;BR /&gt;but it don't send subject or sender name|e-mail that I want to set.&lt;BR /&gt;&lt;BR /&gt;Any idea&lt;BR /&gt;Thanx in advance,&lt;BR /&gt;Lima.&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2004 15:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321989#M187551</guid>
      <dc:creator>Vogra</dc:creator>
      <dc:date>2004-07-02T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321990#M187552</link>
      <description>Here is what I use regularly and it works quite well.&lt;BR /&gt;&lt;BR /&gt;The following is a single LONG command line:&lt;BR /&gt;&lt;BR /&gt;(echo "Subject: Whatever" ; echo "From: from@somewhere.com" ; uuencode /filename /filename) | /usr/sbin/sendmail to@somewhere.com</description>
      <pubDate>Fri, 02 Jul 2004 16:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321990#M187552</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-07-02T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321991#M187553</link>
      <description>Try this one, works for me..&lt;BR /&gt;&lt;BR /&gt;# uuencode file.txt file.txt | mailx -r me@mydomain.com -s "mysbuject" to@urdomain.com&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Abdul.</description>
      <pubDate>Fri, 02 Jul 2004 16:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321991#M187553</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-07-02T16:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321992#M187554</link>
      <description>Hello Lima,&lt;BR /&gt;&lt;BR /&gt;PART1:&lt;BR /&gt;&lt;BR /&gt;Here is what I use.&lt;BR /&gt;The basic lay out of a file that you would send looks like so.&lt;BR /&gt;&lt;BR /&gt;more mailfile&lt;BR /&gt;&lt;BR /&gt;From: Someone@somewhere.net&lt;BR /&gt;To: otherperson@otherplace.com&lt;BR /&gt;Subject: test subject&lt;BR /&gt;&lt;BR /&gt;this is the data&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if the mailfile is created all you have to do to send it is &lt;BR /&gt;&lt;BR /&gt;cat mailfile | sendmail -t&lt;BR /&gt;&lt;BR /&gt;that will send the email considering that a mail relay is setup properly. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PART 2:&lt;BR /&gt;&lt;BR /&gt;How to create the mailfile.&lt;BR /&gt;For my needs the mail file is created in a script that gathers data daily and then will email it to me so the data is always different.&lt;BR /&gt;&lt;BR /&gt;In this example the datafile is the output from a script. The mailfile alwayas has to go first otherwise sendmail will not know where to send the email to. And the data file will be in the subject line.&lt;BR /&gt;&lt;BR /&gt;Here is the mail send part of my script.&lt;BR /&gt;&lt;BR /&gt;echo "From: you@somewhere.com " &amp;gt;&amp;gt; mailfile&lt;BR /&gt;echo "To: someone@somewhere.com " &amp;gt;&amp;gt; mailfile&lt;BR /&gt;echo "Subject: Your subject here " &amp;gt;&amp;gt; mailfile&lt;BR /&gt;echo " " &amp;gt;&amp;gt; mailfile&lt;BR /&gt;###############&lt;BR /&gt;cat mailfile datafile | sendmail -t&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 03 Jul 2004 12:10:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321992#M187554</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2004-07-03T12:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Send e-mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321993#M187555</link>
      <description>Hi Patrick,&lt;BR /&gt; your solution is ok. Thanx, but why it don't send "to" name when it is open?&lt;BR /&gt;Who receive it, don't know for who is sent it e-mail. It is not a problem, I only curious.&lt;BR /&gt;Thanx a lot,&lt;BR /&gt;Lima.&lt;BR /&gt;&lt;BR /&gt;Abdul, your solution try to send file sile.txt in plain text (already codificated) in my unix box. Any  idea? Thanx anyway.&lt;BR /&gt;&lt;BR /&gt;Richard, you solution don't send attached file. Thanx anyway.&lt;BR /&gt;&lt;BR /&gt;Thanx to all!&lt;BR /&gt;Lima.</description>
      <pubDate>Sun, 04 Jul 2004 10:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail/m-p/3321993#M187555</guid>
      <dc:creator>Vogra</dc:creator>
      <dc:date>2004-07-04T10:18:27Z</dc:date>
    </item>
  </channel>
</rss>

