<?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: using perl script to send emails in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659054#M928748</link>
    <description>oops, I forgot, you still have to close it:&lt;BR /&gt;&lt;BR /&gt;close(MF);&lt;BR /&gt;&lt;BR /&gt;sorry about that&lt;BR /&gt;mark</description>
    <pubDate>Tue, 05 Feb 2002 15:55:20 GMT</pubDate>
    <dc:creator>Mark Greene_1</dc:creator>
    <dc:date>2002-02-05T15:55:20Z</dc:date>
    <item>
      <title>using perl script to send emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659052#M928746</link>
      <description>I am having trouble with the right syntax in my perl script to get an email sent at the time of execution.  Below is an example of my script.  Any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Jeff&lt;BR /&gt;&lt;BR /&gt; open(SENDMAIL, "|/usr/lib/sendmail -oi -t -odq");&lt;BR /&gt;        print(SENDMAIL) &amp;lt;&amp;lt;"EOF";&lt;BR /&gt;        From: root@pikachu.acscltnt&lt;BR /&gt;        To: jeff.paciolla@acs-inc.com&lt;BR /&gt;        Subject: NNM Stats&lt;BR /&gt;&lt;BR /&gt;        Testing the email&lt;BR /&gt;        EOF&lt;BR /&gt;        close(SENDMAIL);&lt;BR /&gt;&lt;BR /&gt;Here is the error I receive&lt;BR /&gt;&lt;BR /&gt;syntax error in file ./ov-monthlystats.pl at line 80, next 2 tokens "root@pikachu"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Feb 2002 15:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659052#M928746</guid>
      <dc:creator>Jeff Paciolla_1</dc:creator>
      <dc:date>2002-02-05T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: using perl script to send emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659053#M928747</link>
      <description>don't use sendmail directly, use mailx:&lt;BR /&gt;&lt;BR /&gt;open(MF,"| mailx -s 'subject here' mailaddress@domainhere")&lt;BR /&gt;&lt;BR /&gt;and then to send the mail, use print:&lt;BR /&gt;&lt;BR /&gt;print MF ("variables and strings here")&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Tue, 05 Feb 2002 15:51:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659053#M928747</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-02-05T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: using perl script to send emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659054#M928748</link>
      <description>oops, I forgot, you still have to close it:&lt;BR /&gt;&lt;BR /&gt;close(MF);&lt;BR /&gt;&lt;BR /&gt;sorry about that&lt;BR /&gt;mark</description>
      <pubDate>Tue, 05 Feb 2002 15:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659054#M928748</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-02-05T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: using perl script to send emails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659055#M928749</link>
      <description>This is what I generall will use.&lt;BR /&gt;&lt;BR /&gt;open (SENDMAIL, "|/usr/sbin/sendmail johndoe\@yahoo.com &amp;lt; /tmp/filename") || die "$!";&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;C</description>
      <pubDate>Tue, 05 Feb 2002 16:13:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-perl-script-to-send-emails/m-p/2659055#M928749</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-02-05T16:13:47Z</dc:date>
    </item>
  </channel>
</rss>

