Using ASP mailer with FrontPage 2003
One way to process a web form is to email the results using an ASP mailer. The ASP mailer file will reside in the CGI-BIN folder on your web site.
Note: for a copy of the aspmailer file Right-Click on the link below and choose Save Target As (IE users) or Save Link As (Netscape users). Save the file in the CGI-BIN folder as aspmailer.asp (not .txt!).
Right-click to save the aspmailer.txt
BOTH aspmailer.asp and your online form need to be modified.
FOLLOW THESE STEPS TO MAKE THE NECESSARY MODIFICATIONS:
- Open the form you have created, select File, Save As and save the htm document with an asp extension.

- Within the form document, right-click and select "Form Properties"
- In the Form properties window select "Send to other" (Custom ISAPI, etc..). Then click on Options. Fill in the Action: textbox to match the image below: CGI-BIN/aspmail.asp. Click OK twice to accept these changes and close out of the windows.
NOTE: the path to the aspmailer is a relative link. The example above assumes the form is at the root of your website. If you have your forms in a specific "forms" folder, you would need to modify the path to the following:
- Change to code view and insert a Hidden field with the following code: <input type="hidden" name="TGorder" value="">
The value field should be filled in with the names of the fields from your form. The field names will be listed in a string separated by commas, no spaces between field names. List them in the order that you want to receive the data. For example: <input type="hidden" name="TGorder" value="firstname,lastname,email,street,city,state,zip">
This input area is Case Sensitive - enter the field names EXACTLY as they are named in the form. (it's probably a good idea to always use lower case).
- Save the form.
- Open the aspmailer.asp file and modify it using FrontPage code view or Notepad. (FrontPage is a better choice; Notepad doesn't use line numbers.)
- Change the following information that starts on line 74:
- strRcpt = "youremail@uwgb.edu" between the quotes. Put the address you want the form information sent to here.
- Line 76: strFromVar = "email"
If you want a reply-to email address to be taken from the form between the quotes. Put the name of the email field here.

- Line 79: returntosender = true. If you've changed Line 76, you'll want to change this to TRUE, so that a return email is sent to the person filling out the form.

- Line 82: strDefFrom = "email@uwgb.edu"
Between the quotes. Put a default, even fake, From address here
- Line 84: strDefSubject = "Name of the Form" Modify the info between the quotes. Put the subject of the email here. If an input item called subject exists in the form, its value will be used instead.
- Line 87: strRedirect = ""
Url to redirect to after a successful form submission. If an input item called redirect exists in the form; its value will be used instead.
- Save the aspmailer.asp file.
- Test your form.
NOTE: If you have more than one form on your site and you would like them to have different subject lines or be sent to different address, then make a copy of the aspmailer and save it with a different name. (for example, incomplete.asp) Just make certain that you point to the correct asp file when editting the properties of your form. (see below)