Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-13-2005, 08:51 AM   PM User | #1
designer_bhutan
New Coder

 
Join Date: Apr 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
designer_bhutan is an unknown quantity at this point
Exclamation Server.CreateObject Failed

hi

i have a form in my site which is generated as mail, i have shifted to a new hosting company and using this code:

strSubject = "Article" & " " & num
strToEmail = "xyz@xyz.com"
Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
objCDONTS.From = namef
objCDONTS.To = strToEmail
objCDONTS.Subject = strSubject
objCDONTS.BodyFormat=0
objCDONTS.MailFormat=0
objCDONTS.Importance = 1 objCDONTS.Body = HTML
objCDONTS.Send
Set objCDONTS = Nothing


this code is working perfectly before, but i dont know with the new hosting provider it gives me error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/beta/pages/sendarticle.asp, line 125

800401f3


i made a contact with the support they told me to use SMTP 127.0.0.1 which i dont really know what it is, pls. help..
designer_bhutan is offline   Reply With Quote
Old 09-13-2005, 11:16 AM   PM User | #2
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
Quote:
Originally Posted by designer_bhutan
i made a contact with the support they told me to use SMTP 127.0.0.1 which i dont really know what it is, pls. help..
It sounds like they're telling you that the mail server - which you'll be sending emails through - is residing on the webserver. Which is fairly useless knowledge at this point. What you want to know from them is which ASP email components they have installed on the webserver, because it doesn't look like they have the one you're trying to use.
Spudhead is offline   Reply With Quote
Old 09-13-2005, 02:50 PM   PM User | #3
nikkiH
Senior Coder

 
nikkiH's Avatar
 
Join Date: Jun 2005
Location: Near Chicago, IL, USA
Posts: 1,973
Thanks: 1
Thanked 32 Times in 31 Posts
nikkiH is on a distinguished road
(more than likely...)
It means they don't support the outdated CDONTS anymore and use CDOSYS.
__________________

If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit
http://www.kaelisspace.com/
nikkiH is offline   Reply With Quote
Old 09-13-2005, 03:17 PM   PM User | #4
neocool00
Regular Coder

 
Join Date: Sep 2004
Posts: 152
Thanks: 0
Thanked 0 Times in 0 Posts
neocool00 is an unknown quantity at this point
I would agree w/ Nikki and would inquire with the hosting company what you should use to send e-mails via ASP. Server.CreateObject failed and I'm willing to bet that line 125 is this: Set objCDONTS = Server.CreateObject("CDONTS.NewMail"), which means your object did not get created (because it probably doesn't exist on the server).
neocool00 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:56 AM.


Advertisement
Log in to turn off these ads.