I am still trtying to work out some basics. Here is the email form I am testing on my coldfusion acct. to use in various places on the site. I can't seem to get any emails back though. I want to eventually make the form more complex... but I figured I should try to get this to function first. Anyway, I am having similar problems with my file upload form that I posted a topic on.... no-one has replied to that post yet... these may be similar issues... I havn't figured it out yet. Please forgive me for not understanding this code stuff yet.... once I do, I feel like I will be able to do some really creative stuff. Please help, some day I may be able to return the favor! Thanks.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Contact Us</title><style type="text/css">
<!--
.style2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #333333;
}
-->
</style></head>
<body><CFIF IsDefined("process")>
<div align="center">
<!--- Send the message to yourself, when the user posts it on your site. --->
<CFMAIL to="email@mywebsite.com" from="#ContactEmail#" Subject="mail from mywebsite.com"server="mail.mywebsite.com" port="25"
username=“emai@mywebsite.com”
password=“emailpassword”>
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<CFMAIL to="email@mywebsite.com" from="#ContactEmail#" Subject="mail from mywebsite.com" server="mail.mywebsite.com" port="25"
username=“emai@mywebsite.com” password=“emailpassword”>
Thank you for your message,
We'll be in touch as soon as we can, we receive hundred and thousands
of emails a day; so we might take a while, but we'll reply!
Thanks again for visiting our site,
Michael Parenteau - Webmaster
michael@intuitimaging.com.Com
You wrote:
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<table width="600" border="1" cellspacing="5" cellpadding="7">
<tr bgcolor="#E7E7E7">
<th width="126" scope="col"><img src="images/AEClogo(web).jpg" alt="" width="198" height="193" /></th>
<th width="425" valign="middle" scope="col"><div align="center" class="style2">Thank You for your message. We will contact you as soon as possible.
<hr size="1" /> <a href="#">Click here to go to the home page</a></div></th>
</tr>
</table>
<CFELSE>
</div>
<cfform action="contact.cfm" method="post">
<input type="hidden" name="Process" Value="1">
<table align="center" border="0" width="487">
<tr>
<td width="20%" valign="top" align="right">Name:</td>
<td width="80%"><cfinput type="text" name="ContactName" size="20" required="yes" message="Please Enter Your Name!"></td>
</tr>
<tr>
<td width="20%" valign="top" align="right">Email:</td>
<td width="80%"><cfinput type="text" name="ContactEmail" size="20" required="yes" message="Please Enter Your Email Address!"></td>
</tr>
<tr>
<td width="20%" valign="top" align="right">Message:</td>
<td width="80%"><textarea rows="4" name="ContactMessage" cols="50"></textarea></td>
</tr>
<tr>
<td width="20%" valign="top" align="right"></td>
<td width="80%"><input type="submit" value="Submit Contact Form"></td>
</tr>
</table>
</cfform>
</CFIF>
</body>
</html>

New Topic/Question
Reply



MultiQuote





|