"rvj" <rv*@rolemodels.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
Im attempting to convert a simple CDO VB script to Javascript but keep
getting Internal Error 500. The VB version works fine.
As far as I can tell all I need to do change the object definition and add
the language declaration.
Can anyone see what is wrong with the object definition?
<%@ language=javascript %>
<%
objMail = Server.CreateObject("CDO.Message")
// objMail = New Server.CreateObject("CDO.Message")
objMail.From="x.y.z"
objMail.To="so*****@somewhere.net"
objMail.Subject="topic"
objMail.TextBody="text"
objMail.Send
%>
Is it a 500 or a 500.100?
If 500.100 what is the error text supplied with the error.
You have 'Send detailed error messages' enabled on the App Debugging tab of
the Application Configuration dialog? You can open this dialog from
application properties home directory tab.
You tested the original VBScript version on the same server before porting
to Javascript and it worked?
use:-
Language = JScript
no javascript
You have configured the mail settings on the server extensions tab of the
application properties dialog?