<?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: 'mail' syntax in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801175#M81952</link>
    <description>These 2 commands can only send the file content inside the mail. But how to send a mail with an attachment?&lt;BR /&gt;&lt;BR /&gt;Tks</description>
    <pubDate>Fri, 06 Sep 2002 13:06:12 GMT</pubDate>
    <dc:creator>Dennis Chow</dc:creator>
    <dc:date>2002-09-06T13:06:12Z</dc:date>
    <item>
      <title>'mail' syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801172#M81949</link>
      <description>Hi.&lt;BR /&gt;I configured my sendmail last time and now I want it to send me mail's with somemessages when something happens. Now (that'a an example) I want to put into cron a command thet will send to me every hour a message with the subject "MAIL SUBJECT" and the text "THIS IS A CRON MESSAGE". What will be the 'mail' command syntax?&lt;BR /&gt;&lt;BR /&gt;mail user@server.xx -s "MAIL SUBJECT" "THIS IS A CRON MESSAGE"&lt;BR /&gt;&lt;BR /&gt;doesn't want to work.&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Fri, 06 Sep 2002 11:21:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801172#M81949</guid>
      <dc:creator>Michal_6</dc:creator>
      <dc:date>2002-09-06T11:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'mail' syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801173#M81950</link>
      <description>echo "This is a cron message" | mailx -s "mail subject" user@server&lt;BR /&gt;&lt;BR /&gt;Note use of mailx instead of mail.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Fri, 06 Sep 2002 11:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801173#M81950</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-09-06T11:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: 'mail' syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801174#M81951</link>
      <description>mailx -s "Subject" yy@yy.com &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;contents of file mailed to user yy@yy.com with mail subject line as Subject</description>
      <pubDate>Fri, 06 Sep 2002 11:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801174#M81951</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-09-06T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: 'mail' syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801175#M81952</link>
      <description>These 2 commands can only send the file content inside the mail. But how to send a mail with an attachment?&lt;BR /&gt;&lt;BR /&gt;Tks</description>
      <pubDate>Fri, 06 Sep 2002 13:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801175#M81952</guid>
      <dc:creator>Dennis Chow</dc:creator>
      <dc:date>2002-09-06T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: 'mail' syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801176#M81953</link>
      <description>Kropeck,&lt;BR /&gt;&lt;BR /&gt;I copied this script off the forum some time back.  I think it was posted by Steven Burgess.&lt;BR /&gt;&lt;BR /&gt;I apologize if I have the credit incorrect.&lt;BR /&gt;&lt;BR /&gt;Tom&lt;BR /&gt;----------------------------&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;  export EMAIL_TO=username@receiving.email&lt;BR /&gt;  export EMAIL_FROM=username@sending.email&lt;BR /&gt;  export EMAIL_SUBJECT="subject of e-mail"&lt;BR /&gt;  export EMAIL_BODY=/tmp/body_of_e-mail&lt;BR /&gt;  export FILE_NAME=filename.txt&lt;BR /&gt;  export ATTACHED_FILE=/tmp/file_to_attach&lt;BR /&gt;&lt;BR /&gt;  {&lt;BR /&gt;    echo To:      $EMAIL_TO&lt;BR /&gt;    echo From:    $EMAIL_FROM&lt;BR /&gt;    echo Subject: $EMAIL_SUBJECT&lt;BR /&gt;    echo 'MIME-Version: 1.0'&lt;BR /&gt;    echo 'Content-type: multipart/mixed; boundary="xxxxyyyzzqzzyyyxxxx"'&lt;BR /&gt;    echo '--xxxxyyyzzqzzyyyxxxx'&lt;BR /&gt;    echo ''&lt;BR /&gt;    cat $EMAIL_BODY&lt;BR /&gt;    echo '--xxxxyyyzzqzzyyyxxxx'&lt;BR /&gt;    echo 'Content-Disposition: attachment; filename="'$FILE_NAME'"'&lt;BR /&gt;    echo ''&lt;BR /&gt;    cat $ATTACHED_FILE&lt;BR /&gt;    echo '--xxxxyyyzzqzzyyyxxxx--'&lt;BR /&gt;  } | /usr/sbin/sendmail $EMAIL_TO&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 13:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801176#M81953</guid>
      <dc:creator>Tom Dawson</dc:creator>
      <dc:date>2002-09-06T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: 'mail' syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801177#M81954</link>
      <description>HI&lt;BR /&gt;#echo "THIS IS A CRON MESSAGE" |mailx -m -s "MAIL SUBJECT" user@server.com&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant.</description>
      <pubDate>Fri, 06 Sep 2002 13:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-syntax/m-p/2801177#M81954</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2002-09-06T13:56:46Z</dc:date>
    </item>
  </channel>
</rss>

