472,126 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

CDOsys asp mail script problems

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 = ma****@lasvegasunions.info
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

Sep 21 '07 #1
2 5285
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!)

"mister-Ed" wrote:
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 = ma****@lasvegasunions.info
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

Sep 21 '07 #2
"mister-Ed" <27**@cox.netwrote in message
news:11**********************@n39g2000hsh.googlegr oups.com...
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 = ma****@lasvegasunions.info
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?
--
Anthony Jones - MVP ASP/ASP.NET
Sep 21 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Matthew Loraditch | last post: by
14 posts views Thread by Neil Ginsberg | last post: by
2 posts views Thread by crushando | last post: by
12 posts views Thread by Basr | last post: by
8 posts views Thread by Akbur | last post: by
8 posts views Thread by worldofrugs | last post: by
9 posts views Thread by paulmitchell507 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.