webForumDet fria alternativet

Formmail.pl

3 svar · 529 visningar · startad av Fenmund

FenmundMedlem sedan maj 200462 inlägg
#1

Hejsan!

Har ett formulär kopplat till FormMail.pl.
Allt har fungerat toppen men nu plötligt så fungerar ski*ten inte längre.
Jag får upp felmeddelande "Error: Bad/No Recipient"

Formuläret:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Beställningsformulär Tvättkorgen</title>
</head>

<body background="rutbakgrund2.gif">

<div align="left">
  <table border="1" cellpadding="0" cellspacing="0" width="746" bgcolor="#FFFF00">
    <tr>
      <td width="742" bgcolor="#FF9900"><font color="#0000FF" face="Arial" size="2"><b>Välkommen
        till Tvättkorgens Beställningsformulär!</b></font></td>
    </tr>
  </table>
</div>
<form method="post" action="http://www.tvattkorgen.se/cgi-bin/FormMail.pl">
<input type=hidden name="recipient" value="order@tvattkorgen.se">
<input type=hidden name="subject" value="Order till Tvättkorgen">
<input type=hidden name="redirect" value="http://www.tvattkorgen.se/tack_for_bestallning.htm">
<input type=hidden name="required" value="Namn,e-mail,Adress,Postnummer,Postort,Villkor">

<p>
<input name="personuppgifter" Size="35"  value="Låt oss börja med lite uppgifter om dig" disabled><br>
<input type="text" name="Namn" Size="35">    <font face="Arial" size="2">- Namn*</font><br>
<input type="text" name="e-mail" Size="35">  <font face="Arial" size="2">- E-post*</font><br>
<input type="text" name="Adress" Size="35"> <font face="Arial" size="2"> - Adress*</font><br>
<input type="text" name="Postnummer" Size="5"> <input type="text" name="Postort" Size="15"> 
 <font face="Arial" size="2">- Postadress*</font><br>
<input type="text" name="telefon" Size="35">   <font face="Arial" size="2">- Telefon</font>
</p>

<p> &nbsp;</p>

<input name="Vad vill du bestalla" Size="35"  value="Vad vill du beställa?" disabled> <br>
<select name="Artikel 1">
<option selected> -- Artikel 1 -- </option>
<option> T-Shirt "S" </option>
</select>

<select name="Storlek artikel 1">
<option selected> -- Välj storlek -- </option>
<option> Small </option>
<option> Medium </option>
<option> Large </option>

</select>

&nbsp;<br>
<select name="Artikel 2">
<option selected> -- Artikel 2 -- </option>
<option> T-Shirt "S" </option>
</select>

<select name="Storlek artikel 2">
<option selected> -- Välj storlek -- </option>
<option> Small </option>
<option> Medium </option>
<option> Large </option>

</select>

&nbsp;<br>
<select name="Artikel 3">
<option selected> -- Artikel 3 -- </option>
<option> T-Shirt "S" </option>
</select>

<select name="Storlek artikel 3">
<option selected> -- Välj storlek -- </option>
<option> Small </option>
<option> Medium </option>
<option> Large </option>
</select><br>

<select name="leveranssatt">
<option selected> -- Välj Leveranssätt --</option>
<option>Postförskott</option>
<option>Förskottsbetalning</option>
</select><font face="Arial" size="2" color="#808080">Vad ska jag välja??? Se
&quot;Betalningsätt&quot;</font> &nbsp;
<p>&nbsp;</p>
<p>

<select name="hittade">
<option selected>-- Hur hittade du hit? -- </option>
<option>Sökmotor</option>
<option>Via en bekant</option>
<option>Via länk på annan sida</option>
<option>Annons</option>
<option> Annat sätt</option>

</select>

</p>

<p>
<input type="radio" name="Villkor" value="villkor"><font size="2" face="Arial">Jag
har läst och godkänner Tvättkorgens <a href="Villkor.htm" target="_blank"> Villkor</a> </font><br>
<input type="submit" name="Skicka" value="Skicka beställningen!">
<input type="reset" name="rensa" value=Rensa formuläret...">

</p>

</form>

  <table border="1" cellpadding="0" cellspacing="0" width="746" bgcolor="#FFFF00">
    <tr>
      <td width="742" bgcolor="#FF9900">
        <p align="center"><font color="#808080" face="Arial" size="2"><b>Om du
        vill så går det lika bra att skicka din beställning till <a href="mailto:order@tvattkorgen.se">order@tvattkorgen.se</a>
        </b></font></p>
      </td>
    </tr>
  </table>

</body>

</html>
</form>
</form>

Och du hittar den på http://www.tvattkorgen.se/bestform.htm

Här är koden i formmail:

# Define Variables                                                           #
#      Detailed Information Found In README File.                            #

# $mailprog defines the location of your sendmail program on your unix       #
# system. The flags -i and -t should be passed to sendmail in order to       #
# have it ignore single dots on a line and to read message for recipients    #

$mailprog = '/usr/lib/sendmail -i -t';

# @referers allows forms to be located only on servers which are defined     #
# in this field.  This security fix from the last version which allowed      #
# anyone on any server to use your FormMail script on their web site.        #

@referers = ('tvattkorgen.se','217.208.96.75');

# @recipients defines the e-mail addresses or domain names that e-mail can   #
# be sent to.  This must be filled in correctly to prevent SPAM and allow    #
# valid addresses to receive e-mail.  Read the documentation to find out how #
# this variable works!!!  It is EXTREMELY IMPORTANT.                         #
@recipients = &fill_recipients('tvattkorgen.se');

# ACCESS CONTROL FIX: Peter D. Thompson Yezek                                #
# @valid_ENV allows the sysadmin to define what environment variables can    #
# be reported via the env_report directive.  This was implemented to fix     #
# the problem reported at [url]http://www.securityfocus.com/bid/1187[/url]              #

@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT');

# Done

Tack på förhand!

adeMedlem sedan juli 20041 418 inlägg
#2

står det inget mer i felmedelandet?!

FenmundMedlem sedan maj 200462 inlägg
#3

Jo

Jag får upp felmeddelande "Error: Bad/No Recipient"
Men som ni ser i koden

@recipients = &fill_recipients('tvattkorgen.se');

så har jag fyllt i recipients...och dessutom så fungerade det ju förut....

FenmundMedlem sedan maj 200462 inlägg
#4

Glöm tråden...

mitt i alltihopa så fungerar det......

skumt

Genererad på 368 ms · cache AV · v20260730165559-full.f96bc7eb