faqts : Computers : Internet : Web Servers : IIS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 15 people (33%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

Need help configuring Server Extensions. Can't get a feedback form to be sent via email from the website.

Oct 2nd, 2001 09:35
Blech Blah, Ben Masten,


Try using CDONTS as follows:


==========================================================

<%
Dim strFName, strLName, strEMail

strFName = Request("txtFirstName")
strLName = Request("txtLastName")
strEMail = Request("txtEMailAddr")

Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")

objCDO.To = "me@myserver.com"
objCDO.From = "you@yourserver.com"
objCDO.cc = "them@theirserver.com"

Dim txtBody
txtBody = "Email for: " & strFName & " " & strLName & vbCr &  strEmail

objCDO.Subject = "Some Form Generated Info"
objCDO.Body = txtBody
objCDO.Send

%> 

<head><title>Sent mail</title></head>

<body>
The mail has been sent!
</body>