Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 07:22:41 AM

Pages: [1]   Go Down
  Print  
Author Topic: Problems Configuring Email Form - SOLVED  (Read 691 times)
webdancer
Trekkie
**
Offline Offline

Posts: 12


« on: September 21, 2010, 06:12:18 PM »

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.com

CODE 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>
        &copy; 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>
        &copy; 2002 London Perl Mongers
      </font>
    </p>
  </body>
</html>

« Last Edit: September 24, 2010, 07:18:55 AM by webdancer » Logged
webdancer
Trekkie
**
Offline Offline

Posts: 12


« Reply #1 on: September 21, 2010, 06:16:07 PM »

Also, in the download containing all the components for the email form I did not see the nms.css stylesheet. Where would I get this stylesheet?

Thank you,
webdancer

rlbryant@triad.rr.com
Logged
webdancer
Trekkie
**
Offline Offline

Posts: 12


« Reply #2 on: September 25, 2010, 06:54:21 AM »

I was able (with some help) to get the issues resolved. See the post "TFmail configuration questions - SOLVED".
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: