<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>2.4.3 : 14.1 Email and Pager Settings : Comments</title>
    <link>http://community.zenoss.org/docs/DOC-3044#comments</link>
    <description>Comments on : 14.1 Email and Pager Settings</description>
    <language>en</language>
    <pubDate>Mon, 15 Jul 2013 17:01:44 GMT</pubDate>
    <generator>Jive SBS 4.5.6.2  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2013-07-15T17:01:44Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: 14.1 Email and Pager Settings</title>
      <link>http://community.zenoss.org/docs/DOC-3044#comments-6676</link>
      <description>&lt;!-- [DocumentBodyStart:09eed680-45c3-460d-bbc9-4e5425e96ba2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;Note: If you want the pager field to goto someone's SMS "email" like &lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:1235551234@vtext.com"&gt;1235551234@vtext.com&lt;/a&gt;&lt;span&gt; you can do the followin.&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Create folder $ZENHOME/scripts/&lt;/p&gt;&lt;p&gt;Create the script below.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Page Command : $ZENHOME/scripts/mail.pl &lt;/span&gt;&lt;/p&gt;&lt;p&gt;File: mail.pl&lt;/p&gt;&lt;p&gt;#!/usr/bin/perl&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;my $title="Alert";&lt;/p&gt;&lt;p&gt;my $to=$ARGV[0];&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;$from= 'Zenoss';&lt;/p&gt;&lt;p&gt;$subject=$title;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;open(MAIL, "|/usr/sbin/sendmail -t");&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;## Mail Header&lt;/p&gt;&lt;p&gt;print MAIL "To: $to\n";&lt;/p&gt;&lt;p&gt;print MAIL "From: $from\n";&lt;/p&gt;&lt;p&gt;print MAIL "Subject: $subject\n\n";&lt;/p&gt;&lt;p&gt;## Mail Body&lt;/p&gt;&lt;p&gt;foreach $line ( &amp;lt;STDIN&amp;gt; ) {&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; chomp( $line );&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; print MAIL "$line\n";&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;close(MAIL);&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;As long as you have sendmail configured then you should be seeing pages.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:09eed680-45c3-460d-bbc9-4e5425e96ba2] --&gt;</description>
      <pubDate>Mon, 15 Jul 2013 17:01:44 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-3044#comments-6676</guid>
      <dc:date>2013-07-15T17:01:44Z</dc:date>
      <clearspace:dateToText>8 months, 1 day ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

