Forum Moderators: open
Thanks in advance for any replies.
The script:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%Language="VBSCRIPT"%>
<%
cdousername = Session("username")
cdopass = Session("pass")
%>
<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "me@myisp.com"
objCDO.Subject = "Dealer Updated Page"
objCDO.Body = "Username: " & cdousername & VbCrLf & "Password: " & vbCrLf & cdopass
objCDO.Send()
objCDO = null
%>
<%
Response.Redirect "dealerupdatethanks.asp"
%>
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
Also, take the vbscript declarative and put it above your html tag. You have this: <%Language="VBSCRIPT"%> when, if memory is correct, should be this: <%@ language = "VBScript"%>
At the end of your code, there's this: objCDO = null
Try:
take out objCDO = null
and replace with the below:
objCDO.Close
Set objCDO = Nothing.
If you still have nothing, turn your friendly http errors off by going to tools -> internet options -> advanced
-> and un-check friendly http error messages.
And paste the error that you get.
Mac