CDOsys asp mail script problems

CDOsys asp mail script problems

am 21.09.2007 19:28:10 von 276q

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:

Your Name:


City:


State:




Your Email:




class="inputSubmit" value="Submit">



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 = mailer@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

Re: CDOsys asp mail script problems

am 21.09.2007 21:40:29 von 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.microso ft.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:
>
>

Your Name:
>
>
City:
>
>
State:
>
>

>
> Your Email:
>
>


> > class="inputSubmit" value="Submit">
>


>
> 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 = mailer@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
>

Re: CDOsys asp mail script problems

am 21.09.2007 22:37:59 von Anthony Jones

"mister-Ed" <276q@cox.net> wrote in message
news:1190395690.835384.300660@n39g2000hsh.googlegroups.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:
>
>

Your Name:
>
>
City:
>
>
State:
>
>

>
> Your Email:
>
>


> > class="inputSubmit" value="Submit">
>


>
> 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 = mailer@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