Hello,
I used the instructions kindly posted by Mr. Priest to configure a form so that visitors to our site can send an email. However, when I try to save the configuration I get the 'Application Error' page. Can someone please help me get this working? I have put the code for each configuration box below.
Any help would be greatly appreciated.
TIA,
rlbryant@triad.rr.comCODE FOR MAIN CONFIGURATION:
%% NMS configuration file %%
#
# TFmail configuration.
#
#
# recipient: the email address(s) to which TFmail should
# send the results of the form submission.
#
recipient:
info@phillipselectricofws.com#
# The names of the CGI inputs that TFmail should use to
# build the From: header of the email.
#
email_input: Email
realname_input: Name
# What the "Subject" field will contain
subject: Contact Request
# Which fields are required:
required: Name, Email
# What the "Subject" field will contain in the confirmation e-mail:
confirmation_subject: Contact Request received
# Name of the logfile:
logfile: PE_log
# Format of the log and which fields to use:
log_template:%{= date =} | {= env.REMOTE_ADDR =} | {= param.Name =} | {= param.Email =} | {= param.Phone =} | {= param.Details =}
CODE FOR CONFIRMATION TEMPLATE:
Thank you for contacting Phillips Electric of WS.
CODE FOR EMAIL TEMPLATE:
Below is the result of your feedback form. It was submitted
{= by_submitter =} on {= date =}.
----------------------------------------------------------------------
{= FOREACH input_field =}
{= name =}: {= value =}
{= END =}
----------------------------------------------------------------------
CODE FOR MISSING TEMPLATE:
<?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>Missing Fields</title>
<link rel="stylesheet" type="text/css" href="/css/nms.css" />
<style>
h1.title {
text-align : center;
}
</style>
</head>
<body>
<h1 class="title">Missing Fields</h1>
<p>
The following fields were left blank in your submission form:
</p>
<ul>
{= FOREACH missing_field =}
<li>{= name =}</li>
{= END =}
</ul>
<p>
These fields must be filled in before you can successfully
submit the form.
</p>
<p>
Please use your back button to return to the form and
try again.
</p>
<p align="center">
<font size="-1">
<a href="
http://nms-cgi.sourceforge.net/">TFmail</a>
© 2002 London Perl Mongers
</font>
</p>
</body>
</html>
CODE FOR SUCCESS PAGE TEMPLATE:
<?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>Thank You</title>
<link rel="stylesheet" type="text/css" href="/css/nms.css" />
<style>
h1.title {
text-align : center;
}
</style>
</head>
<body>
<h1 class="title">Thank You</h1>
<p>Below is the information you submitted on {= date =}</p>
<hr size="1" width="75%" />
{= FOREACH input_field =}
<p><b>{= name =}:</b> {= value =}</p>
{= END =}
<hr size="1" width="75%" />
<p align="center">
<font size="-1">
<a href="
http://nms-cgi.sourceforge.net/">TFmail</a>
© 2002 London Perl Mongers
</font>
</p>
</body>
</html>