Frequently Asked Questions

Help Center Search

Using the ASP Form-Mailer

Print this Article
Comment on this Article
Last Updated: July 7, 2008 11:02 AM

NOTE: This article applies only to Windows Shared Hosting accounts.

To use the ASP form-mailer, create a Web form in HTML that links to our ASP script and upload it to your hosting account.

Remember to specify the email address you want to use with the form-mailer in your account manager. For more information, see Specifying an Email Address for the ASP Form-Mailer.

To Use the ASP Form-Mailer

  1. Create your Web form as normal and assign unique names to your form items.
  2. NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.

  3. For the form action line, enter gdform.asp. For example:
    <form action="gdform.asp" method="post">
  4. Set the form method to "post."
  5. In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.

    Subject. Controls the subject line in the form email.

    Redirect. Controls the page that your visitors will see after they submit the form. If the page exists off your hosting root, the subdirectory must be specified.

    Email. Controls the return address for the form email.

    For example:

    <form action="gdform.asp" method="post">
    <input type="hidden" name="subject" value="Form Submission" />
    'This example assumes thankyou.html resides in the hosting
    'account root directory.
    'The appropriate path must be supplied if the file
    'exists in a subdirectory.

    <input type="hidden" name="redirect" value="thankyou.html" />
    <p>First Name:<input type="text" name="FirstName" /></p>
    <p>Last Name:<input type="text" name="LastName" /></p>
    <p>E-Mail:<input type="text" name="email" /></p>
    <p>Comments:<textarea name="comments" cols="40" rows="10">
    Type comments here.</textarea></p>
    <input type="submit" name="submit" value="submit"/>
    </form>
  6. Save and upload your file to your hosting account.

NOTE: Your file and GDFORM.ASP need to be placed in the same directory of your hosting account in order for the form to properly function. If the directory in which they reside is off your hosting account root, you must provide the complete confirmation page path in your code.

For information on reinstalling your default scripts, see Reinstalling the Default Scripts Directory