<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1000969" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1000969</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sendmail-will-someone-please-tell-me-why-doesnt-work#comment-1004113</link>
    <description> &lt;p&gt;$mailprog=&#039;/usr/local/bin/perl&#039;; works just fine.&lt;/p&gt;
&lt;p&gt;*slaps himself in the head*&lt;/p&gt;
&lt;p&gt;funny how the toughest problems to find are the most obvious.&lt;/p&gt;
&lt;p&gt;thanks for the help everyone&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Feb 2000 00:06:00 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1004113 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sendmail-will-someone-please-tell-me-why-doesnt-work#comment-1004112</link>
    <description> &lt;p&gt;open(PROG, &quot;|$mailprog -t&quot;);  will ONLY give you an error if you check the return value:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
open PROG, &quot;|$mailprog -t&quot; or
  die &quot;can&#039;t run $mailprog -t: $!&quot;;
[/code]

The original code had two typos that I saw immediately.  A &#039;}&#039; where a &#039;;&#039; should have been, and the path to sendmail was missing the leading /.

And no, you don&#039;t need to backslash a / in a double-quoted string.  Backslash-fever is a very annoying Perl illness... I&#039;d very much like to know where it started.

------------------
-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Mon, 14 Feb 2000 23:32:00 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1004112 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sendmail-will-someone-please-tell-me-why-doesnt-work#comment-1004111</link>
    <description> &lt;p&gt;thanks for the suggestions, i will try them when i get home...&lt;/p&gt;
&lt;p&gt;i believe i tried &quot;usr\/sbin\/sendmail&quot; but it didnt make a difference, i wasnt aware single quotes made a difference.  i did forget that first &#039;/&#039; on the sendmail path, i dont think that was it though because i tried this...&lt;/p&gt;
&lt;p&gt;open(MAIL,&quot;|$mailprog -t&quot;);&lt;br /&gt;
close MAIL;&lt;/p&gt;
&lt;p&gt;which did not give me an error, which means the path is correct, right?&lt;/p&gt;
&lt;p&gt;also, script runs fine in a dos window, no errors, and virtualave says their sendmail prog is working fine.&lt;/p&gt;
&lt;p&gt;when i get home ill change $mailprog to &#039;/usr/sbin/sendmail&#039; or &quot;\/usr\/sbin\/sendmail&quot; and see if that fixes anything.&lt;/p&gt;
&lt;p&gt;Thanks again for the suggestions.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2000 20:05:00 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1004111 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sendmail-will-someone-please-tell-me-why-doesnt-work#comment-1004110</link>
    <description> &lt;p&gt;better yet, use the correct path to sendmail, i.e. /usr/sbin/sendmail instead of usr/sbin/sendmail.  plus, look at the error logs.  very helpful in determining what&#039;s wrong.  if you try running that on a shell, does it work ok?  if not, what errors does it give?&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2000 03:18:00 +0000</pubDate>
 <dc:creator>roBofh</dc:creator>
 <guid isPermaLink="false">comment 1004110 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sendmail-will-someone-please-tell-me-why-doesnt-work#comment-1004109</link>
    <description> &lt;p&gt;$mailprog=&quot;usr/sbin/sendmail&quot;;&lt;/p&gt;
&lt;p&gt;shouldn&#039;t you have it as&lt;br /&gt;
$mailprog=&#039;usr/sbin/sendmail&#039;;&lt;br /&gt;
or&lt;br /&gt;
$mailprog=&quot;usr\/sbin\/sendmail&quot;;&lt;br /&gt;
?&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;Windmills always turn counter-clockwise. Except for the windmills in Ireland.&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2000 02:51:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004109 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/sendmail-will-someone-please-tell-me-why-doesnt-work#comment-1004108</link>
    <description> &lt;p&gt;correction, here is the script minus typos:&lt;/p&gt;
&lt;p&gt;#!/usr/local/bin/perl&lt;/p&gt;
&lt;p&gt;$mailprog=&quot;usr/sbin/sendmail&quot;;&lt;/p&gt;
&lt;p&gt;print &quot;Content Type: text/html\n\n&quot;;&lt;br /&gt;
print &quot;&amp;lt;h1&amp;gt;testing sendmail&amp;lt;/h1&amp;gt;\n&quot;;&lt;/p&gt;
&lt;p&gt;&amp;amp;send_mail;&lt;/p&gt;
&lt;p&gt;sub send_mail {&lt;/p&gt;
&lt;p&gt;    open(MAIL,&quot;|$mailprog -t&quot;);&lt;/p&gt;
&lt;p&gt;    print MAIL &quot;To: robjohnson\@black-hole.com\n&quot;;&lt;br /&gt;
    print MAIL &quot;From: dillybar1\@black-hole.com\n&quot;;&lt;br /&gt;
	print MAIL &quot;Subject: sendmail test\n\n&quot;;&lt;/p&gt;
&lt;p&gt;    print MAIL &quot;Test email\n&quot;;&lt;/p&gt;
&lt;p&gt;    close (MAIL);&lt;br /&gt;
}&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Feb 2000 02:30:00 +0000</pubDate>
 <dc:creator>ROB</dc:creator>
 <guid isPermaLink="false">comment 1004108 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
