formail

  alan2k1 13:36 02 Dec 06
Locked

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" ?>
html>

head>
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" />
/head>

body>

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

where am i going wrong ?

thanks
alan

  Forum Editor 14:14 02 Dec 06

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 06

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


<?php
////////////////////////////////////////////////////////////////////////////
// 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
$check_referrer="no";
$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_title="success.html";
$thanks_page_text="Thank you for your inquiry";

// options to use if hidden field "config" has a value of 0
// recipient info
$charset[0]="iso-8859-1";
$tomail[0]="[email protected]";
$cc_tomail[0]="";
$bcc_tomail[0]="[email protected]";
// Mail contents config
$subject[0]="Contact form from website";
$reply_to_field[0]="email";
$required_fields[0]="title,forename,surname,address1,postcode";
$required_email_fields[0]="email";
$attachment_fields[0]="";
$return_ip[0]="yes";
$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.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

VFX Oscar nominees 2017: Discover how the visual effects were created

Best alternatives to iTunes for Mac | Best music players for macOS: Free your music from the…