<?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 from command line add subject how to in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596908#M232282</link>
    <description>As can mailx&lt;BR /&gt;echo "test" | "mailx" -s 'test subject' admin@xyz.com&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Aug 2005 15:47:09 GMT</pubDate>
    <dc:creator>Alan Meyer_4</dc:creator>
    <dc:date>2005-08-04T15:47:09Z</dc:date>
    <item>
      <title>send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596904#M232278</link>
      <description>I am trying to set my server to automatically send some emails out. What I would like to do is to create a "Subject" field. I read the sendmail's man page but cannot find any reference to such a thing. How can it be done?&lt;BR /&gt;&lt;BR /&gt;I can do this from command line just fine:&lt;BR /&gt;echo "test" | sendmail &lt;ADMIN&gt;&lt;BR /&gt;&lt;BR /&gt;The email is sent and received at destination successfully.&lt;BR /&gt;&lt;BR /&gt;The command below sends an e-mail and the address is being put at BCC with no subject and the body contains the word "test". All I need is to add a Subject field and eventually a To or CC to it. Please help.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;james&lt;BR /&gt;&lt;/ADMIN&gt;</description>
      <pubDate>Thu, 04 Aug 2005 15:34:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596904#M232278</guid>
      <dc:creator>jamesps</dc:creator>
      <dc:date>2005-08-04T15:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596905#M232279</link>
      <description>by "the command below" I meant "the above command", sorry too tired I guess :)</description>
      <pubDate>Thu, 04 Aug 2005 15:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596905#M232279</guid>
      <dc:creator>jamesps</dc:creator>
      <dc:date>2005-08-04T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596906#M232280</link>
      <description>elm can be driven from the command line:&lt;BR /&gt;&lt;BR /&gt;echo "test" | elm -s "Test Subject" admin@xyz.com.&lt;BR /&gt;&lt;BR /&gt;Unlike the interactive version of elm (which will create it automatically), you must have a .elm directory (it can be empty) in the sender's home directory. Man elm for details.</description>
      <pubDate>Thu, 04 Aug 2005 15:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596906#M232280</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-08-04T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596907#M232281</link>
      <description>echo test | sendmail -s "This is the subject" you_address.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will work as well.&lt;BR /&gt;&lt;BR /&gt;mailx -s "This is the subject" you_address.com &amp;lt; test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 15:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596907#M232281</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-08-04T15:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596908#M232282</link>
      <description>As can mailx&lt;BR /&gt;echo "test" | "mailx" -s 'test subject' admin@xyz.com&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 15:47:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596908#M232282</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-04T15:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596909#M232283</link>
      <description>I can't believe it was that simple. Actually it wasn't because I can't do it with sendmail. Sendmail seem to not like the "-s" parameter. I've been through its man page and have not found anything to use to get a subject or change the To or CC.&lt;BR /&gt;&lt;BR /&gt;Since elm needs a directory "to work" mailx is the way to go for now.&lt;BR /&gt;Thank you all!&lt;BR /&gt;&lt;BR /&gt;james.&lt;BR /&gt;&lt;BR /&gt;PS: shouldn't sendmail have some "hidden" option to send a subject?!</description>
      <pubDate>Thu, 04 Aug 2005 16:05:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596909#M232283</guid>
      <dc:creator>jamesps</dc:creator>
      <dc:date>2005-08-04T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596910#M232284</link>
      <description>I use the following with the sendmail command in a script:&lt;BR /&gt;&lt;BR /&gt;(echo "Subject: e-mail subject here" ; echo "test") | sendmail admin@xyz.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596910#M232284</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-08-04T16:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596911#M232285</link>
      <description>Patrick's solution works. Just make sure you send a "\n" (new line characher) at the end of your subject string to insert a blank line to separate the header (which subject line is a part of along with many others you can inject into) from the message body.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 04 Aug 2005 16:22:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596911#M232285</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-04T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: send e-mail from command line add subject how to</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596912#M232286</link>
      <description>Yes it works. Thanks Patrick!&lt;BR /&gt;&lt;BR /&gt;Mel, I am not sure I understand, is there a \n needed if I need to put a "To: ..." line for example? &lt;BR /&gt;&lt;BR /&gt;Thanks all!&lt;BR /&gt;james</description>
      <pubDate>Thu, 04 Aug 2005 16:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-e-mail-from-command-line-add-subject-how-to/m-p/3596912#M232286</guid>
      <dc:creator>jamesps</dc:creator>
      <dc:date>2005-08-04T16:55:20Z</dc:date>
    </item>
  </channel>
</rss>

