Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,500 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,734 people online right now. Registration is fast and FREE... Join Now!




Forms

 
Reply to this topicStart new topic

Forms, How to send form fields using coldfusion to my mail

kay
28 Jan, 2008 - 09:04 AM
Post #1

New D.I.C Head
*

Joined: 28 Jan, 2008
Posts: 1

This is my form; I’d like to know how I can send the contents of this form to my email address.

[code]

<div id="form">

<form action="">

<fieldset>
<legend>Your details</legend>
<ul>
<li><label for="name" >Full Name:</label><input id="name" /></li>
<li><label for="email" >email:</label><input id="email" /></li>

<li><label for="telephone" >Telephone number</label><input id="telephone"/></li>
<li><label for="mobile" >Mobile number</label><input id="mobile" /></li>
</ul>
</fieldset>


<fieldset>
<legend>Type Your Message here</legend>

<ul>
<li><label for="enhanceusability" >Message</label><textarea id="enhanceusability" cols="30" rows="4" /></textarea></li>
</ul>
</fieldset>

<input class="button" type="submit" value="Send email" />
</form>
</div>
[code]
User is offlineProfile CardPM
+Quote Post

dswens
RE: Forms
29 Jan, 2008 - 10:01 AM
Post #2

New D.I.C Head
*

Joined: 16 Oct, 2007
Posts: 34


My Contributions
Items in the code that need to be customized are in ALL CAPS.

CODE

<cfmail from="FROM ADDRESS" failto="FAILURE ADDRESS" replyto="REPLY ADDRESS" subject="MESSAGE SUBJECT" to="TO ADDRESS" server="YOUR MAIL SERVER" username="SERVER USERNAME" password="SERVER PASSWORD" type="html">
        
<!--- PUT YOUR MESSAGE CONTENTS HERE --->
        
</cfmail>

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 08:09PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month