Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-24-2004, 03:50 PM
WebProWorld Pro
 

Join Date: Aug 2004
Location: Maryland
Posts: 219
webmasterjunkie RepRank 0
Default ASP FormHandler Error SendUsing

You guys are such great help I figure I'll ask another question. I know - I should stick to real estate. :)

I am going to paste my .asp code below and the error I get and could you please tell me why I'm getting this error.

CODE:

<html>
<head>
<title>Thank you for requesting a free CMA.</title>
</head>
<body>


<font size="6">Registration Confirmed</font></p>

<%
Firstname = Request.Form("first_name")
Lastname = Request.Form("last_name")
HouseNumber = Request.Form("house_number")
StreetName = Request.Form("street_name")
City = Request.Form("city")
State = Request.Form("state")
ZipCode = Request.Form("zipcode")
AdditionalInfo = Request.Form("additional_info")
EmailAddress = Request.Form("email_address")
PhoneNumber = Request.Form("phone_number")
ContactTime = Request.Form("contact_time")

Response.Write "Firstname = " + Firstname + "
"
Response.Write "Lastname = " + Lastname + "
"
Response.Write "HouseNumber = " + HouseNumber + "
"
Response.Write "StreetName = " + StreetName + "
"
Response.Write "City = " + City + "
"
Response.Write "State = " + State + "
"
Response.Write "ZipCode = " + ZipCode + "
"
Response.Write "AdditionalInfo = " + AdditionalInfo + "
"
Response.Write "EmailAddress = " + EmailAddress + "
"
Response.Write "PhoneNumber = " + PhoneNumber + "
"
Response.Write "ContactTime = " + ContactTime + "
"

MailForm = ""
MailForm = MailForm + "Firstname = " + Firstname + vbCrLF
MailForm = MailForm + "Lastname = " + Lastname + vbCrLF
MailForm = MailForm + "HouseNumber = " + HouseNumber + vbCrLF
MailForm = MailForm + "StreetName = " + StreetName + vbCrLF
MailForm = MailForm + "City = " + City + vbCrLF
MailForm = MailForm + "State = " + State + vbCrLF
MailForm = MailForm + "AdditionalInfo = " + AdditionalInfo + vbCrLF
MailForm = MailForm + "EmailAddress = " + EmailAddress + vbCrLF
MailForm = MailForm + "PhoneNumber = " + PhoneNumber + vbCrLF
MailForm = MailForm + "ContactTime = " + ContactTime + vbCrLF

Set smtp = Server.CreateObject("CDO.Message")
smtp.From = "webmaster@kaytrimbath.com"
smtp.To = "kay@kaytrimbath.com"
smtp.Subject = "Data received on your form"
smtp.TextBody = MailForm
smtp.Send
Set smtp = Nothing
%>

</body>
</html>

OUTPUT:

Registration Confirmed

Firstname = test
Lastname = test
HouseNumber = 3110
StreetName = test
City = test
State = test
ZipCode = 20678
AdditionalInfo = test
EmailAddress = test@testmail.com
PhoneNumber = 555-555-5555
ContactTime = AM

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'SendUsing'

/cmaformhandler.asp, line 55
Reply With Quote
  #2 (permalink)  
Old 09-25-2004, 04:32 AM
WebProWorld Member
 

Join Date: Sep 2004
Location: Northampton, UK
Posts: 41
profilesite RepRank 0
Default

looks like thats the wrong page for this error, i put your code into DW to get the line numbers and it is only 55 lines long, definately no ASP on that line.
Reply With Quote
  #3 (permalink)  
Old 09-25-2004, 10:23 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Which site are you using to test the ASP code above?
I noticed the kaytrimbath.com site is running on an Apache server. The ASP code snippet is using a CDO mail routine which you might utilise on a Windows server with IIS.
So it's possible a mismatch is causing the "unsupported method" error. Do you know if there's an smtp server configured on your host's server?
Reply With Quote
  #4 (permalink)  
Old 09-25-2004, 02:14 PM
WebProWorld Pro
 

Join Date: Aug 2004
Location: Maryland
Posts: 219
webmasterjunkie RepRank 0
Default Typo on post!

The error should read line 50 not 55, Sorry. The line that reads smtp.Send.

Also, paulhiles:
I am making another site I am going to host on IPowerWeb's server. Right now I am using a testing server running .asp; windows server 2003.

A friend of mine, convinced me to do this since I am going to cancel my site at IHouse - If you know a Realtor who is looking for a hosting company...STAY AWAY FROM IHOUSE!!! - and save the $600 a year, I could just pay $200 something and have two sites that I could SEO and get good exposure.
Reply With Quote
  #5 (permalink)  
Old 09-27-2004, 02:01 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

webmasterjunkie: have you tried using CDONTS instead of CDO? I haven't used CDO personally, but I have used CDONTS and found it to work in 99% of cases (since most IIS hosts have it installed).

The code is basically the same except for two lines:
Code:
Set smtp = Server.CreateObject("CDO.Message")
becomes
Code:
Set smtp = Server.CreateObject("CDONTS.NewMail")
and
Code:
smtp.TextBody = MailForm
becomes
Code:
smtp.Body = MailForm
Try this.

If that doesn't work, what may also be causing your problem is the fact that you named your object SMTP. Although I doubt this is your problem, naming objects after reserved words (such as Session or Left) will throw errors of this nature. I'm not sure if SMTP is one as it pertains to the CDO.Message object, and I doubt it is, but since I don't know for sure, it may be a possibility.

And if neither works, then download ASPEmail. It's another free email component specifically for ASP and IIS. I've used it about 7 or 8 times and never had an issue with it; I've even found that you can install it onto a local Windows machine, not necessarily IIS, and call it from a VBS file (which I thought was way cool considering that I did this in Win98SE). So it's a pretty nice mail component. And it's free. Did I mention it was free?

Okay, if none of that solves your problem, I'm stumped.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0