Jump to content

scud-eater

Members
  • Posts

    2
  • Joined

  • Last visited

scud-eater's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. thanks for the suggestion but it didnae workanyone else?
  2. hii've been shoehorned into takin care of the websites made at my work but it's all pretty new to me. I've been updating existing sites and none of the contact forms work (apparently we moved servers and it hasn't worked since)i'll use one example of where i'm at with this.the error message when you try and submit the form reads"Error: Bad/No RecipientThere was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in @recipients. More information on filling in recipient form fields and variables can be found in the README file.FormMail V1.92 © 1995 - 2002 Matt WrightA Free Product of Matt's Script Archive, Inc. "here is the htm for the form"<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>contact us</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link href="../css/text1.css" rel="stylesheet" type="text/css" /><script language="JavaScript" type="text/JavaScript"><!--function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);//--></script></head><body leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0 topmargin=0 bgcolor="#FFFFFF"><br /><table width="495" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10" rowspan="2" valign="top"><img src="../images/shim.gif" width="8" height="325" /></td> <td valign="top" class="texthead1"><div align="left"><font color="#333333">contact us </font> <span class="textbody1"> telephone: 01592 630063 fax: 01592 631163</span> </div> <div align="center"></div></td> </tr> <tr> <td valign="top"> <form action="http://www.directmarketingscotland.co.uk/cgi-bin/FormMail.pl" method="POST"> <input name="redirect" value="http://www.directmarketingscotland.co.uk/forms/thanx.htm" type="hidden"> <input name="recipient" value="enquiries@directmarketingscotland.co.uk" type="hidden"> <input name="subject" value="Web Enquiry" type="hidden"> <br /> <span class="textbody2">enquiry form </span><span class="textbody1">- please fill in form and click send.</span><br /> <br /> <table width="495" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="textbody1">Email Recipient</span><br /> <select name="select" size="1"> <option selected="selected">general enquiry</option> <option value="john mclean">managing director</option> <option value="sandra shire">accounts/credit control</option> <option value="kellyanne">sales/advertising</option> <option value="mary or wullie">graphic department</option> </select> </td> <td><span class="textbody1">from</span><br /> <input name="from" type="text" id="from" size="30" /></td> </tr> <tr> <td width="177"><span class="textbody1"><br /> contact number</span><br /> <input name="telephone" type="text" id="telephone2" /> <span class="textbody1"> </span></td> <td width="318"><span class="textbody1"><br /> email address</span><br /> <input name="email" type="text" id="email2" size="30" /> <span class="textbody1"> </span></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2"><span class="textbody1">type enquiry here</span><br /> <textarea name="enquiry text" cols="45" rows="3" wrap="VIRTUAL" id="enquiry text"></textarea> </td> </tr> <tr> <td colspan="2"><br /> <input type="checkbox" name="checkbox" value="checkbox" /> <span class="textbody1">add me to direct marketing email database <input type="submit" name="Submit" value="send" /> </span></td> </tr> <tr> <td colspan="2"> </td> </tr> </table> </form> <div align="justify"></div></td> </tr></table></body></html>"and here is the config part of the Perl script which has been used to run the forms"BEGIN{ $DEBUGGING = 0; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 5; $mailprog = '/usr/sbin/sendmail -oi -t'; @referers = qw(www.directmarketingscotland.co.uk directmarketingscotland.co.uk 217.168.147.76 serverwebspace.co.uk); @allow_mail_to = qw(enquiries@directmarketingscotland.co.uk); @recipients = &fill_recipients(@referers); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT); $locale = ''; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = '0'; $send_confirmation_mail = 0; $confirmation_text = <<'END_OF_CONFIRMATION';From: you@your.comSubject: form submissionThank you for your form submission.END_OF_CONFIRMATION## USER CONFIGURATION << END >>"can anyone see the problem in here, it would be awfully appreciated ta? (it's been takin me ages - there's no one at my work to even ask!!)
×
×
  • Create New...