Windows 2003 Web Hosting 2003 Web Hosting
Windows Hosting Company Info asp.NET web hosting Microsoft Web Hosting Windows 2003 Web Hosting Windows 2003 ASP Hosting 2003 Web Hosting Windows 2003 Hosting
Windows 2003 Web Hosting Windows 2003  Web Hosting

Using ColdFusion Email Script

Step 1: Create your form

Here is the HTML for a sample form:

<html>
<head>
<title>Page Title</title>
</head>

<body>

<h3><font face="Arial">Form Title</font></h3>
<form method="POST" action="FILENAME.cfm">
<font size="2" face="Arial">
<p>Company: <input type="text" name="Company" size="25"></p>
<p>First Name: <input type="text" name="FirstName" size="25"></p>
<p>Last Name: <input type="text" name="LastName" size="25"></p>
<p>Address: <input type="text" name="Address1" size="30"></p>
<p>Address 2: <input type="text" name="Address2" size="30"></p>
<p>City: <input type="text" name="City" size="20"></p>
<p>Province/State: <input type="text" name="Province" size="20"></p>
<p>Postal Code/Zip: <input type="text" name="PostalCode" size="15"></p>
<p>Country: <input type="text" name="Country" size="20"></p>
<p>Telephone: <input type="text" name="Telephone" size="20"></p>
<p>Email: <input type="text" name="Email" size="25"></p>
<p>&nbsp;</p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</font>
</form>

</body>

</html>

Just copy the text in the box above and paste it into the HTML of a blank web page. If your are using FrontPage, you will need to click on the HTML tab located beside the Normal and Preview tabs in the bottom left corner before you paste the text.  

Step 2: Create the mailto to Script

Here is an example of an easy Cold Fusion mailto Script that works with the sample form above. The entries in CAPITAL LETTERS are the ones you replace with your information. You will also be filling in the body of the script based on the fields you use in your form. This is explained in detail below. The form above is only a sample form. You can add more fields, remove fields, and/or rename fields.  

<cfmail 
from= #form.EMAILFIELDNAME# 
to="EMAILADDRESS@SOMEONESDOMAIN.COM" 
subject="EMAIL SUBJECT TITLE GOES HERE" 
server="63.119.175.39">

Company : #form.Company#
First Name : #form.FirstName#
Last Name : #form.LastName#
Address 1 : #form.Address1#
Address 2 : #form.Address2#
City : #form.City#
Province/State : #form.Province#
Postal Code/Zip : #form.PostalCode#
Country : #form.Country#
Telephone : #form.Telephone#
Email : #form.email#

</cfmail>
<cflocation url="YOUR CONFIRMATION PAGE URL ADDRESS">


IMPORTANT NOTE: Do not use the IP address of your email server as that will not work. Preferable method is to use the IP address of your WEB server. You can locate that IP in your original welcome email under the FTP section or by doing a ping on your domain name.

The basics are pretty clear here. Just copy the text in the box above and paste it into NOTEPAD. Do not use a word processor like Microsoft Word or Works. This will add extra formatting characters that the script will not recognize.

Enter the From Address, To Address, Subject, and Confirmation Page address. The From Address will be the person's email address who filled out the form, therefore you must have an email field on your form. The example above and below show sample email fields. If you do not want to include an email field on your form, then just enter an email address using the same format as the To Address. The Confirmation Page address must include the http:// or https:// depending on whether you are using a secure or non-secure page.

The body part of the email will list the form field names. Let's say you have the following form field names: FirstName, LastName, Address, Email. The body part of the email would appear as:

First Name : #form.FirstName#
Last Name : #form.LastName#
Address : #form.Address1#
Email : #form.email#

The #form part inserts the form field data that the customer entered in the form. The form fields you use for your form do not have to include the same fields and field names as the examples given above. You can use any number of fields and various types of field names as long as the names do not contain any spaces. If you did not use the sample form, but instead created your form from scratch in FrontPage, the easiest way to get a complete list of all the fields in your form is to view the for properties: Right click on the form and choose "Form Properties" from the menu. Select the "Options" button in the bottom left. Click on the last tab called "Saved Fields". You will see a complete list of all the fields used in your form. Copy these field names and add them to your email script body as explained above.

Remember that the form field names are case sensitive. That means that #form.firstname# is not the same as #form.FirstName#. Also, make sure there are no spaces or dashes in your form field names. This mail script does not recognize radio buttons or check boxes. You will have to use text boxes, scroll boxes, or drop down boxes only.

Once you've got the script edited to include all of the fields in your form, save the script file as FILENAME.cfm (you can change FILENAME to whatever name you desire). Upload this anywhere in your website or on your secure server. The action= portion of your form should read <form action="FILENAME.cfm" method="post">. If you used the sample form above, you will need to change the action="FILENAME.cfm" part of the HTML to whatever you named the script file.

If you use multiple forms on your web then you will need to create a new FILENAME.cfm for each form using this script.

For FrontPage Users

For people using FrontPage you will need to set the action and method part of the form using the Form Properties. In FrontPage go to your form and right click on it. Choose "Form Properties" from the menu. The following screen will appear:

ColdFusion Email Tutorials

You will need to select "Where to store results" as "Send to other" as show in the picture above
- Click on the Option button at the bottom and the following screen will appear:

ColdFusion Email Tutorials

Type FILENAME.cfm (change to whatever you called your script) into the Action box and select the Method as Post.

Your script and form should be finished now and ready to use on your web page.

If you use multiple forms on your web then you will need to create a new FILENAME.cfm for each form using this script.

 

Windows 2003 Hosting

 

1PlanHost provides affordable Windows 2003 ASP, ASP.NET and FrontPage Web Hosting solutions for thousands of companies and non-profit organizations worldwide. With our Windows 2003 hosting 100% Uptime and 45 Day Full Money Back Guarantee, it is hard to beat us in terms of reliability and value. Since 1996 our commitment has been to provide customers with the most reliable servers and outstanding support. Sign up now to begin your positive Windows 2003 web hosting experience with 1PlanHost.com An innovative Windows 2003 Resellers Web Hosting Program is also available. We are looking forward to serving you!
Darrell Williams

 

 
Customer Care (Support)
Hosting Technical Support Customer Care HelpDesk

Tutorials and FAQ
Support Tutorials Directory Getting Started Tutorial Control Panel Tutorials
Email Tutorials FrontPage Tutorials FTP Tutorials
ASP Tutorials Database Tutorials
Miscellaneous Tutorials Frequent Asked Questions

Account Management
Account Control Panel Update Account Info Form Cancel Hosting Account

Renewing Existing Services
Renew Web Hosting Account

Adding New Services
Order Web Hosting Account Add 1000 MB to Account



microsoft asp hosintg

Windows 2003 Web Hosting
Order Windows 2003 Web Hosting



Testimonials:

"Provides reliable, polite, responsive service at a fair cost, I did not think it was possible."
-- Chris Molseed

"No extra charge for advanced features, Quick and Accurate Support Responses."
-- Michael Harrelson

Read more quotes...


ASP hosting

windows 2003 .net hosting