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
|