Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Server.CreateObject Error

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,1358
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Server.CreateObject Error
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Server.CreateObject Error - 9/14/2004 6:32:27 AM   
  aezriel

 

Posts: 4
Score: 0
Joined: 9/7/2004
From:
Status: offline
In my asp where it suppose to send email to user, every time the page is loaded, I get the server object error, which looks like this:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/pwd/password.asp, line 30


the following is my code:

Set JMail=Server.CreateObject("JMail.SMTPMail") <=== line 30
Body="abc def ..."
JMail.ServerAddress="my.domain.com"
JMail.ContentType="text/html"
JMail.sender="me"
JMail.sendername="me"
JMail.subject="test"
JMail.AddRecipient "me@domain.com"
JMail.Body=Body
JMail.Execute

Is there anything wrong with my code or I have to set the object JMail somewhere else (register JMail in registry? Where is the dll in this case?)

Any idea?

Thanks.
 
 
Post #: 1
 
 Re: Server.CreateObject Error - 9/15/2004 2:31:11 AM   
  dalejwright22

 

Posts: 11
Score: 0
Joined: 9/15/2004
From: United Kingdom
Status: offline
your trying to use an object that doesnt exist.. I assume that your using the JMail component to send mail?? u need to ask ur network admin to see if u have this component registered with your server.
Can i make a suggestion, if ur using the ASP to send mail, and i assume ur running windows os (NT/2000/2003/XP) ?? if so why dont you use CDOsys yo use as ur mail function???

here is a good example:

Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")

'------------ ian change the localhost to the IP address..get off martin --------

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost" 'change localhost to ur webserver. this will work with win2k above

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update

Set objCDOSYSMail.Configuration = objCDOSYSCon

objCDOSYSMail.From = strEML
objCDOSYSMail.To = strTargetEmail
objCDOSYSMail.Subject = strTitle
objCDOSYSMail.HTMLBody = strBody
objCDOSYSMail.Send


Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing


if you want to use JMAIL you need to register the component..

cheers

(in reply to aezriel)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Server.CreateObject Error Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts