DTMF: Dual Tone Multi-Frequency
DTMF refers to push-button telephone signals, wherein a specific and unique frequency consisting of two tones is assigned to each key.
home
L337 Speak Converter
Popup Windows
Javascript Cookies
Email via ASP CDONTS
VoiceXML Demo

Email Me using ASP CDONTS

Collaboration Data Objects for Windows NT Server (CDONTS) is a simple object library developers can use for basic mail and messaging services. CDONTS is installed as part of the optional SMTP component of Windows 2000 Server.

Send Email via CDONTS

The following form demonstrates sending a simple, plain-text email using CDONTS. If you'd like to receive a response, put your email address in the FROM: field. Alternatively, you may contact me directly be sending an email to admin[remove_this]@[remove_this]brenz.net.
Contact brenz.net

To:
brenz.net

From:
Subject:
Body:


Implement CDONTS Email on Your Website

To send an email like this one from your .asp page using CDONTS, drop in this small snippet of code at the very top of the page (before the doctype and html tags):
<%
if request.form("send").count > 0 then
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "yourname@yoursite.com"
ObjMail.From = request.form("from")
ObjMail.Subject = request.form("subject")
ObjMail.Body = request.form("body")
ObjMail.Send
Set ObjMail = Nothing
Response.redirect "message_sent.asp"
end if
%>
Then, within the body of your page, an HTML form allows the user to enter their message. The code shown here makes use of the 'post-back' method to return the form data back to the same page. Thus, the code is extremely portable - once it has been written and tested, you can move this page around on your website and not have to worry about changing any form action URL's. The URL of the page in which this form resides is retrieved using the ServerVariables Collection of the Request Object.
<form action="<%= Request.ServerVariables("PATH_INFO") %>" method="post">
<input type="hidden" name="send" id="send" />
<strong>TO:</strong><br />
<em>yourname@yoursite.com</em><br /><br />
<strong>FROM:</strong><br />
<input type="text" name="from" id="from" value=""/>
<strong>SUBJECT:</strong><br />
<input type="text" size="35" name="subject" id="subject" value="" />
<strong>BODY:</strong><br />
<textarea cols="35" rows="5" name="body" id="body"></textarea><br />
<input type="submit" value="Send" />
</form>
[the end]
The L337 Speak Converter averages 20 to 30 thousand page views per month.
Popup Windows
This page covers the basics of popup windows - opening, closing, and changing URLs.
Javascript Cookies
Learn the basics of manipulating cookies with javascript - setting, getting, deleting.
VoiceXML Demo
A simple, toll-free demonstration of telephone and web application interaction.
©2007 chris brenz, brenz.net