<?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: mailx not available, does sendmail have easy sending option? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804366#M23811</link>
    <description>So, I have to code a separate "done" command to finish the mail, or is there some work around for a one-liner command to send a subject-only email?</description>
    <pubDate>Mon, 12 Jun 2006 12:50:10 GMT</pubDate>
    <dc:creator>Debbie Fleith</dc:creator>
    <dc:date>2006-06-12T12:50:10Z</dc:date>
    <item>
      <title>mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804364#M23809</link>
      <description>I have several linux systems that don't have mailx installed.  Rather than install that package, is there some way to call sendmail within a shell script to send out a simple email with a subject line and no message body?</description>
      <pubDate>Mon, 12 Jun 2006 12:07:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804364#M23809</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2006-06-12T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804365#M23810</link>
      <description>Shalom Debbie&lt;BR /&gt;&lt;BR /&gt;mail -s&lt;BR /&gt;&lt;BR /&gt;Works just like mailx from hpus&lt;BR /&gt;&lt;BR /&gt;mail -s "Subject is this" mail@mynetwork.com&lt;BR /&gt;&lt;BR /&gt;Done.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 12 Jun 2006 12:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804365#M23810</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-12T12:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804366#M23811</link>
      <description>So, I have to code a separate "done" command to finish the mail, or is there some work around for a one-liner command to send a subject-only email?</description>
      <pubDate>Mon, 12 Jun 2006 12:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804366#M23811</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2006-06-12T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804367#M23812</link>
      <description>THe reason I asked about a one-liner without "done" is because when I try the mail -s command as you stated, it just hangs.  Do I have some mail config problem?</description>
      <pubDate>Mon, 12 Jun 2006 13:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804367#M23812</guid>
      <dc:creator>Debbie Fleith</dc:creator>
      <dc:date>2006-06-12T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804368#M23813</link>
      <description>Hi Debbie,&lt;BR /&gt;&lt;BR /&gt;This worked without a problem for me:&lt;BR /&gt;echo "test text string" | mail -s "Subject" my.address@myhost.com&lt;BR /&gt;&lt;BR /&gt;No extra entry was required.</description>
      <pubDate>Mon, 12 Jun 2006 14:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804368#M23813</guid>
      <dc:creator>Ken Grabowski</dc:creator>
      <dc:date>2006-06-12T14:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804369#M23814</link>
      <description>Yes Debbie, its exactly like you'd expect with HP-UX or Unix except mail -s instead of mailx.&lt;BR /&gt;&lt;BR /&gt;I've gotten to the point where I create alias for mailx on Linux, but that doesn't help with cron jobs.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 12 Jun 2006 20:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804369#M23814</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-12T20:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: mailx not available, does sendmail have easy sending option?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804370#M23815</link>
      <description>&lt;!--!*#--&gt;Make a Symlink SEP :)&lt;BR /&gt;&lt;BR /&gt;But yes.  'mail' is an inline mailbox tool, which can send mail etc..&lt;BR /&gt;&lt;BR /&gt;If you invoke it as just:&lt;BR /&gt;&lt;BR /&gt;    mail -s "This is the subject" recipient@domain&lt;BR /&gt;&lt;BR /&gt;It will take you into an input mode, waiting for you to type the message body (before ^D/EOFing the input stream).&lt;BR /&gt;&lt;BR /&gt;So you have to pipe something into it, or through it.  So either the 'echo' example above, or something like:&lt;BR /&gt;&lt;BR /&gt;    mail -s "This is an empty message" recipient@domain &amp;lt; /dev/null&lt;BR /&gt;&lt;BR /&gt;To close off STDIN.  Of course, you can make the 'mail' the output pipe of some other string of commands, i.e.:&lt;BR /&gt;&lt;BR /&gt;    grep -Ei "error|warning" /var/log/messages | mail -s "Logged errors" recipient@domain&lt;BR /&gt;&lt;BR /&gt;but that's entirely up to you.&lt;BR /&gt;&lt;BR /&gt;As with 'mailx', the exit-code from mail states whether the message was successfully submitted to the local MTA.</description>
      <pubDate>Tue, 13 Jun 2006 04:50:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mailx-not-available-does-sendmail-have-easy-sending-option/m-p/3804370#M23815</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-06-13T04:50:20Z</dc:date>
    </item>
  </channel>
</rss>

