 |
| Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 15th, 2004, 02:38 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here is the code that i am having trouble with
'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/AppSup/ASWeb/AppSupp/ASPCard/test.asp, line 180
Invalid class string
Thanks
Quote:
quote:Originally posted by happygv
Can someone post some relavant code to understand what is actually being tried? As no one has shown any code that cause this error, it is hard to suggest.
There should be some addition info displayed along with this error, that would help in troubleshooting this. But I dont see anyone post that info here. So the it is difficult to identify the cause. all that I could search from MS site is - Err Msg: Server Object Error ASP 0177 : 800401f3
This may not be relavant to your code. So how about showing some code on that?
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|
|

September 15th, 2004, 08:55 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Looks like JMail component was not registered properly. Can you check that at your end ?
_________________________
- Vijay G
Strive for Perfection
|
|

September 29th, 2004, 03:12 AM
|
|
Friend of Wrox
|
|
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Just install Jmail component again and most probably it works fine
Charul Shukla
|
|

September 29th, 2004, 03:57 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
When I had a similar problem after installing JMail, a simple rebooting of server solved the problem. (I think JMail will not ask to reboot after its installation)
|
|

May 22nd, 2006, 08:19 PM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by pkihou
Here is the code that i am having trouble with
'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/AppSup/ASWeb/AppSupp/ASPCard/test.asp, line 180
Invalid class string
Thanks
Quote:
quote:Originally posted by happygv
Can someone post some relavant code to understand what is actually being tried? As no one has shown any code that cause this error, it is hard to suggest.
There should be some addition info displayed along with this error, that would help in troubleshooting this. But I dont see anyone post that info here. So the it is difficult to identify the cause. all that I could search from MS site is - Err Msg: Server Object Error ASP 0177 : 800401f3
This may not be relavant to your code. So how about showing some code on that?
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|
|
|

May 22nd, 2006, 08:23 PM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by pkihou
Here is the code that i am having trouble with
'Response.Write mailbody
set SMTP=Server.CreateObject("Jmail.SMTPMail")
SMTP.ServerAddress= mailserver
SMTP.Sender=anetfang2
SMTP.AddRecipient anetfang1
SMTP.Subject=blabla
SMTP.Body=mailbody
SMTP.Execute
%>
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/AppSup/ASWeb/AppSupp/ASPCard/test.asp, line 180
Invalid class string
Thanks
Quote:
quote:Originally posted by happygv
Can someone post some relavant code to understand what is actually being tried? As no one has shown any code that cause this error, it is hard to suggest.
There should be some addition info displayed along with this error, that would help in troubleshooting this. But I dont see anyone post that info here. So the it is difficult to identify the cause. all that I could search from MS site is - Err Msg: Server Object Error ASP 0177 : 800401f3
This may not be relavant to your code. So how about showing some code on that?
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|
Quote:
quote:
Have a look at the following piece of code, works for me on IIS 6.0
Set jmail = Server.CreateObject("jMail.Message")
TrapError
jmail.AddRecipient "[email protected]"
jmail.From = "BSNSW_Web_Site"
jmail.Subject = GetTypeDescription() & " - ID " & id
jmail.Body = GetTypeDescription() & _
vbCrLf & _
vbCrLf & "ID: " & id & _
vbCrLf & "Submitted: " & whenSubmitted & _
vbCrLf & _
vbCrLf & "Name: " & Request.Form("title") & _
Request.Form("firstName") & " " & Request.Form("surname") & _
vbCrLf & "Organisation: " & Request.Form("organisation") & _
vbCrLf & "Contact Phone: " & Request.Form("phone") & _
vbCrLf & "Email Address: " & Request.Form("email") & _
vbCrLf & _
vbCrLf & ToUpperFirstChar(GetActionName()) & ": " & _
vbCrLf & "--------" & _
vbCrLf & Request.Form("comment")
jmail.Send("203.62.207.226")
TrapError
End Sub
Ajeet Nagdev
|
|
|

July 23rd, 2007, 09:41 AM
|
|
Registered User
|
|
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
In my case I got this error message on:
call HP_InsertSend(friendemail, youremail, yourname, addmessage, curProg)
PUBLIC Function HP_InsertSend(friendemail, youremail, yourname, addmessage, curProg)
if len(addmessage) > 500 then
addmessage = validatestring(left(addmessage, 500))
end if
dim origination
origination=" visitor CPU: " & request.ServerVariables("HTTP_UA_CPU")& ", visitor OS specifics: " & request.ServerVariables("HTTP_USER_AGENT") & ", visitor IP: " & request.ServerVariables("REMOTE_ADDR")
Call DBOpen (MyConn, MyCmd, MyRs)
With MyCmd
.ActiveConnection = MyConn
.CommandText = "HPolitics_InsertSendFriend '" & validatestring(friendemail) & "','" & validatestring(youremail) & "','" & validatestring(yourname) & "','" & addmessage & "','" & validatestring(curProg) & "','" & origination & "'"
'response.write .CommandText
.Execute
End With
Call DBClose(MyConn, MyCmd, MyRs)
End Function 'HP_InsertSend
That page worked fine until we decide to move from win2k to windows 20033.
Any idea how to fix this?
Thanks:(
Alex
|
|
 |