alan2k1 13:36 02 Dec 2006

i am experimenting getting formail workin i belive the script is working but i am getting the following error

Error: Bad/No Recipient
There 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.

there is nowhere in the html i am using that has the email address in that i want to send the results to

?xml version="1.0" encoding="iso-8859-1" ?>

meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
title>What is your name ? /title>
link rel="stylesheet" type="text/css" href="../../css/nms.css" />


form action="/cgi-bin/" method="post">
input type="hidden" name="subject" value="Favorite Animal"> table
td>What is your name ? /td>
td> input type="text" size="20" name="name" /> /td>
td>What is your favorite animal ? /td>
td> input type="text" size="20" name="animal" /> /td>
td colspan="2"> input type="submit" /> /td>

where am i going wrong ?


  Forum Editor 14:14 02 Dec 2006

which must be altered in order to make it work on your server. One of them specifies the email address to which form results should be sent.

  menorcarob2 11:09 12 Dec 2006

hi alan

not sure what you have here but you must tell the php script where you want the form sent and all other bits and bobs what formailer are you using,

this is what the one i use looks like

// dB Masters' PHP [email protected], Copyright (c) 2004 dB Masters Multimedia
// FormMailer comes with ABSOLUTELY NO WARRANTY
// Licensed under the AGPL
// See license.txt and readme.txt for details
// General Variables
$referring_domains="click here";

// Default Error and Success Page Variables
$error_page_title="error.html - Missed Fields";
$error_page_text="Please use your browser's back button to return to the form and complete the required fields.";
$thanks_page_text="Thank you for your inquiry";

// options to use if hidden field "config" has a value of 0
// recipient info
$tomail[0]="[email protected]";
$bcc_tomail[0]="[email protected]";
// Mail contents config
$subject[0]="Contact form from website";
$mail_intro[0]="This is from the Contacts page on your web site:";

hope this helps

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Xiaomi Mi Mix 2 review

What went wrong at the Designs of the Year 2017

iPhone X news: Release date, price, new features & specs

Comment utiliser Live Photos ?