Rated
Read 22,075 times
Contents
Related Categories
Send an email using a ColdFusion form - The Code
The Code
Julia.cfm
<html>
<head>
<STYLE TYPE="text/css">
body{color: white; background-color: #336600; font-size: 14pt}
TD{font-size: 12pt;font-weight:bolder;}
h1{color: white; text-align:center;}
</style>
<title>Julia Computer Consulting ColdFusion Form</title>
</head>
<br><h1>JULIA COMPUTER CONSULTING</h1>
<br><br>
Fill out this form as completely as possible. You will be answered soon
by email.<br>
<br>
<div align="center">
<center>
<CFFORM METHOD="POST" action="formmail.cfm">
<table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolor="#336600">
<tr>
<td width="36%"><b><i>Organization:</i></b></td>
<td width="64%"><cfinput type="text" name=Org size=50></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Email:</i></b></td>
<td width="64%"> <cfinput type=text name=Email size=20 Required="Yes"
Message="Please enter email.">
</td>
</tr>
<tr>
<td width="36%"><b><i>Your URL:</i></b></td>
<td width="64%"> <cfinput type=text name=Email2 size=20>
</td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Name:</i></b></td>
<td width="64%"><cfinput type=text name=FullName size=50 REQUIRED="YES"
MESSAGE="Please enter Complete Name.">
</td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Address:</i></b></td>
<td width="64%"><cfinput type=text name=Address size=50></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>City/Town:</i></b></td>
<td width="64%"><cfinput type=text name=City size=30></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>State:</i></b></td>
<td width="64%"><cfinput type=text name=State size=10></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Postal Code:</i></b></td>
<td width="64%"><cfinput type=text name=ZipCode size=15></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Home Phone:</i></b></td>
<td width="64%"><cfinput type=text name=HomePhone size=13></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Work Phone:</i></b></td>
<td width="64%"><cfinput type=text name=WorkPhone size=13></td>
</tr>
<tr>
<td width="36%"></td>
<td width="64%"></td>
</tr>
<tr>
<td width="36%"><b><i>Describe the type of programming service
you would
like:</i></b></td>
<td width="64%">
<p><textarea rows="2" name="Comments" cols="60"></textarea>
</table>
<br>
<input type="submit" value="Submit"><input type="reset" value="Reset"></p>
</cfform>
</body>
</html>
formmail.cfm
<html>
<head>
<title>Requesting Information Results Page in ColdFusion</title>
<STYLE TYPE="text/css">
body { margin-left: .25in; margin-right: .25in; color: green; font-size: 14pt;
background-color:white;}
A:visited {color:white}
A:hover {color:white}
A:active {color:white}
A:mailto {color:white}
</STYLE>
</head>
<CFMAIL TO= #Form.Email#
CC="julia@juliacomputers.com"
FROM= "julia@juliacomputers.com"
SUBJECT= "Thank you for consulting Julia Computer Consulting! Your Results...">
The results of your form are as follows...
Thank you for choosing JuliaGreen.com. This is just a ColdFusion test package,
but we will be in touch with you soon!
Organization: #Form.Org#
Email: #Form.Email#
Url: #Form.Email2#
Name: #Form.FullName#
Address: #Form.Address#
City/Town: #Form.City#
State/Province: #Form.State#
Postal Code: #Form.ZipCode#
Home Phone: #Form.HomePhone#
Work Phone: #Form.WorkPhone#
Comments: #Form.Comments#
</CFMAIL>
<CFMAIL TO= #Form.Email#
FROM= "julia@juliacomputers.com"
SUBJECT= "Thank you for consulting Julia Computer Consulting!">
Thank you for choosing Julia Computer Consulting.
We offer many services even if they are not offered on your ISP. This
is an example of a ColdFusion form. Its features are simplicity of design,
and database capabilities. Have us link up your website to ours if you
need a form in either ASP or ColdFusion.
Julia Computer Consulting is a sole proprietorship offering services in the areas
of Web Design and Web Database Design and many other areas of computer programming.
Thank you for consulting us! We will be in touch with you soon, but feel free
to call or email at any time."
Julia Green
Julia Computer Consulting
PO Box 279
Watertown MA 02471-0279
Phone: 617-926-3413
Email: julia@juliacomputers.com
http://www.juliagreen.com
</CFMAIL>
<CFOUTPUT>
<br>
The results of your form are as follows submitted on #DateFormat(Now())# #TimeFormat(Now())#
by #Email#:<br><br>
<hr>
Name: #FullName# <BR>
Organization: #Org#<BR>
Email: #Email#<br>
Url: #Email2#<br>
Address:<br>
#Address#<br>
#City# #State# #ZipCode#<br>
Home Phone: #HomePhone#<br>
Work Phone: #WorkPhone#<br>
Comments: #Comments#<br><br>
Please contact:<br><br>
Julia Green<br>
Julia Computer Consulting<br>
PO Box 279<br>
Watertown MA 02471-0279<br>
Phone: 617-926-3413<br>
Email: <a href=mailto:"julia@juliacomputers.com">julia@juliacomputers.com</a><br>
<a href="http://www.juliagreen.com">http://www.juliagreen.com</a><br>
</CFOUTPUT>
I have been a ColdFusion and ASP programmer for UPS in Watertown Massachusetts for the past two years, and for my own business, Julia Computer Consulting. I believe ColdFusion is the way of the future, it is an amazingly easy language and works with almost any kind of database.
I am presenting several programs, password, search etc. that have all been implemented and tried with various clients. If you have any questions, please do not hesitate to call me at 617-926-3413 or email me at julia@juliacomputers.com
If you need a program done or modified, I do that too, for very little money. Thanks...
Comments
|