Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2005, 01:34 PM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default email form

can some help pls!!
i'm designing a site and i have a form for people to send me feedback. i'm trying to get the information input from to form to my e-mail address. this is the code i'm using, but it gives me an error of
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/site/send.asp, line 13

<%
DIM strName, strEmail, strSubject, strComments
strName = request.form("name")
strEmail = request.form("email")
strSubject = request.form("subject")
strComments = request.form("comments")

mail="my email addy"

reply=request.form("email")


Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From = reply

objMail.Subject = "Museum Comments: " & strSubject

objMail.To= mail

objMail.Body = "Email: " & strEmail & vbCrLf & _
"Name: " & strName & vbCrLf & _
"Subject: " & strSubject & vbCrLf & vbCrLf & _
"Comments: " & vbCrLf & strComments

objMail.Send
Set ObjMail= nothing

%>

whats seems to be the problem



 
Old March 3rd, 2005, 06:21 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi,
i think you are using 2003 server
please use another method...
find this link
http://www.google.com/search?hl=en&q=asp+mail+codes

surendran
(Anything is Possible)
 
Old March 3rd, 2005, 09:15 AM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks, i checked it out but i seem to be on the right track, i think i might not have cdonts installed.. can u tell me where to find the name of my smtp server on my computer, or how to check if i have cdonts?

 
Old March 3rd, 2005, 10:41 AM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey thanks, i've figured it now. i didnt have cdonts.dll installed.. if anybody is havein gthe same problems then you can download cdonts free at this web address... http://www.webthang.co.uk/tuts/tuts_...p1/smtp1_1.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
Form email Questions John10Yes ASP.NET 2.0 Basics 4 September 15th, 2006 10:58 AM
sending email from a form x_ray ASP.NET 1.0 and 1.1 Basics 5 February 22nd, 2006 02:58 PM
Form to Email gateway starknaked Flash (all versions) 0 March 16th, 2005 01:12 AM
email from a form stoneman Access 4 February 18th, 2004 09:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.