<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013305" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013305</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-send-mail-script#comment-1077334</link>
    <description> &lt;p&gt;I did just get this error.&lt;/p&gt;
&lt;p&gt;Any comments?&lt;/p&gt;
&lt;p&gt;syntax error at /data/pecan204/cgi-bin/send_mail.cgi line 27, near &quot;$key (&quot;&lt;br /&gt;
Execution of /data/pecan204/cgi-bin/send_mail.cgi aborted due to compilation errors.&lt;br /&gt;
[Fri Jan 26 18:31:38 2001] [error] [client 24.25.151.112] Premature end of script headers: /data/pecan204/cgi-bin/send_mail.cgi&lt;br /&gt;
[Fri Jan 26 18:31:38 2001] [error] [client 24.25.151.112] MOD_VR9: Error 500 occured while processing : /data/pecan204/cgi-bin/send_mail.cgi&lt;/p&gt;
 </description>
     <pubDate>Sat, 27 Jan 2001 02:48:21 +0000</pubDate>
 <dc:creator>pecan204</dc:creator>
 <guid isPermaLink="false">comment 1077334 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-send-mail-script#comment-1077313</link>
    <description> &lt;p&gt;I slighly modified this since I can&#039;t seen to get a mail script to work on my new server (RaQ3). And as with the others, it dosen&#039;t work either. ANyone see an obvious problem? I get 500 errors.&lt;/p&gt;
&lt;p&gt;#!/usr/bin/perl&lt;/p&gt;
&lt;p&gt;print &quot;Content-type:text/html\n\n&quot;; &lt;/p&gt;
&lt;p&gt;read(STDIN, $buffer, 128000);&lt;br /&gt;
@pairs = split(/&amp;amp;/, $buffer); &lt;/p&gt;
&lt;p&gt;foreach $pair (@pairs)&lt;br /&gt;
{&lt;br /&gt;
($name, $value) = split(/=/, $pair);&lt;br /&gt;
$value =~ tr/+/ /;&lt;br /&gt;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack(&quot;C&quot;, hex($1))/eg;&lt;br /&gt;
$FORM{$name} = $value;&lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;$mailprog = &#039;/usr/sbin/sendmail&#039;;&lt;br /&gt;
open (MAIL, &quot;|$mailprog&quot;) or &amp;amp;dienice(&quot;Can&#039;t access $mailprog!\n&quot;);&lt;br /&gt;
print MAIL &quot;To: syanet\@neo.rr.com&quot;;&lt;br /&gt;
print MAIL &quot;From: $FORM{&#039;email&#039;}\n&quot;;&lt;br /&gt;
print MAIL &quot;Reply-to: $FORM{&#039;email&#039;} ($FORM{&#039;name&#039;})\n&quot;;&lt;br /&gt;
print MAIL &quot;Subject: Submission\n\n&quot;; &lt;/p&gt;
&lt;p&gt;foreach $key (keys(%FORM))&lt;br /&gt;
{&lt;br /&gt;
print MAIL &quot;$key = $FORM{$key}\n&quot;;&lt;br /&gt;
} &lt;/p&gt;
&lt;p&gt;close(MAIL);&lt;/p&gt;
 </description>
     <pubDate>Fri, 26 Jan 2001 18:32:05 +0000</pubDate>
 <dc:creator>syanet</dc:creator>
 <guid isPermaLink="false">comment 1077313 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-send-mail-script#comment-1077278</link>
    <description> &lt;p&gt;But the sender (From: ...) belongs in the header, that is before the empty line(\n\n).&lt;/p&gt;
&lt;p&gt;Give it a try.&lt;/p&gt;
&lt;p&gt;BTW:&lt;br /&gt;
On which system is this running ?&lt;br /&gt;
(BSD, Linux, Solaris ?)&lt;/p&gt;
 </description>
     <pubDate>Fri, 26 Jan 2001 08:43:09 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1077278 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-send-mail-script#comment-1077257</link>
    <description> &lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The sender should be filled in from the form with the variable - &#039;email&#039;.&lt;/p&gt;
&lt;p&gt;If I understand that right. Is there an environment variable called sender?&lt;/p&gt;
&lt;p&gt;Comments? Anyone.&lt;/p&gt;
 </description>
     <pubDate>Fri, 26 Jan 2001 02:36:00 +0000</pubDate>
 <dc:creator>pecan204</dc:creator>
 <guid isPermaLink="false">comment 1077257 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-send-mail-script#comment-1077197</link>
    <description> &lt;p&gt;Just a question,&lt;/p&gt;
&lt;p&gt;where is the sender specified ?&lt;br /&gt;
Some MTA won&#039;t deliver it without.&lt;/p&gt;
&lt;p&gt;And you won&#039;t get an error back.&lt;/p&gt;
&lt;p&gt;anti&lt;/p&gt;
 </description>
     <pubDate>Thu, 25 Jan 2001 13:56:44 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1077197 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
