CDOsys asp mail script problems

M

mister-Ed

Trying to use cdosys mail, but this is giving me an "no such object"
error. the hosting company is not much help, but their list of
components offered does include cdosys mail:

<form method="post" action="cdosys-godaddy.asp"><p class="bodymd-
wh">Your Name:
<input type="text" name="uname" id="uname">
<br>City:
<input type="text" name="city" id="city">
<br>State:
<input type="text" name="state" id="state">
<br>

Your Email:
<input type="text" name="EMail" id="Email">
<br><br>
<input type="submit" name="btnSubmit"
class="inputSubmit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struname,strcity,strstate
strEMail = Request("email")
struname = Request("uname")
strcity = Request("city")
strstate = Request("state")


Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")

'Set key properties
objMail.From = (e-mail address removed)
objMail.To = strEMail
objMail.Subject= "Insert here your subject text"
objMail.TextBody = "Insert here your plain body text"

'Send the email
objMail.Send

'Clean-up mail object
Set objMail = Nothing
%>

???
Ed
 
J

jp2code

Mr. Ed,

One of the things you are missing is a Configuration Field Item:
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "relay-hosting.secureserver.net"

Also, are you aware that you are sending emails to the person that is
filling out the form and specifying that they are originating from the Las
Vegas Unions site? I'm not sure if GoDaddy allows this. I know you can
specify that the message is from whatever name is supplied on the form, but
I think it has to go to one of the names in your GoDaddy mail accounts.

If you would like a nice, built web page that already works with GoDaddy,
I've got one!

Shoot me an email using my form mailer at www.joeswelding.biz.

(Yeah, the site is crappy, but the mailer works great!)
 
A

Anthony Jones

mister-Ed said:
Trying to use cdosys mail, but this is giving me an "no such object"
error. the hosting company is not much help, but their list of
components offered does include cdosys mail:

<form method="post" action="cdosys-godaddy.asp"><p class="bodymd-
wh">Your Name:
<input type="text" name="uname" id="uname">
<br>City:
<input type="text" name="city" id="city">
<br>State:
<input type="text" name="state" id="state">
<br>

Your Email:
<input type="text" name="EMail" id="Email">
<br><br>
<input type="submit" name="btnSubmit"
class="inputSubmit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struname,strcity,strstate
strEMail = Request("email")
struname = Request("uname")
strcity = Request("city")
strstate = Request("state")


Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")

'Set key properties
objMail.From = (e-mail address removed)
objMail.To = strEMail
objMail.Subject= "Insert here your subject text"
objMail.TextBody = "Insert here your plain body text"

'Send the email
objMail.Send

'Clean-up mail object
Set objMail = Nothing
%>

I've never heard of a 'no such object' error. Is that what it really says?
Can you post the error in full. Is it on the CreateObject line? Has your
hosting company confirmed that the CDOSYS is supported? Are the mail
options in the server extensions for your site configured?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top