J
Jerry
I'm getting this error message. Any suggestions? Its stopping on - myMail.Send
CDO.Message.1 error '80070005'
Access is denied.
/email.asp, line 23
Sample Code:
<!--#include file="ADOvbs.inc"-->
<%Username = Cstr(Trim(Request.form("UserName")))%>
<%email = Cstr(Trim(request.form("Email")))%>
<%
Set Conn = Server.CreateObject( "ADODB.Connection" )
set oRs=Server.CreateObject("ADODB.recordset")
conn.Open "DSN=falco; uid=sa; pwd=6stang7"
strSql = "SELECT * FROM Tenant " &_
"WHERE Customerid = '" & Cstr(Request.form("UserName")) & "' " &_
"AND email = '" & Cstr(Request.form("email")) & "'"
oRS.open strSql, conn
if ors.eof then
response.redirect "errorpage.asp"
end if
Set MyMail=CreateObject("CDO.Message")
myMail.Subject="Password"
myMail.From="(e-mail address removed)"
myMail.To=ors("email")
myMail.TextBody="This is your password" &" "& ors("password")
myMail.CreateMHTMLBody "file://E:/Falco/valley.htm"
myMail.Send
Set myMail=Nothing
oRs.close
set oRS=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Email</title></head>
<body>
<H2>Your message has been sent!</H2>
</BODY>
</html>
CDO.Message.1 error '80070005'
Access is denied.
/email.asp, line 23
Sample Code:
<!--#include file="ADOvbs.inc"-->
<%Username = Cstr(Trim(Request.form("UserName")))%>
<%email = Cstr(Trim(request.form("Email")))%>
<%
Set Conn = Server.CreateObject( "ADODB.Connection" )
set oRs=Server.CreateObject("ADODB.recordset")
conn.Open "DSN=falco; uid=sa; pwd=6stang7"
strSql = "SELECT * FROM Tenant " &_
"WHERE Customerid = '" & Cstr(Request.form("UserName")) & "' " &_
"AND email = '" & Cstr(Request.form("email")) & "'"
oRS.open strSql, conn
if ors.eof then
response.redirect "errorpage.asp"
end if
Set MyMail=CreateObject("CDO.Message")
myMail.Subject="Password"
myMail.From="(e-mail address removed)"
myMail.To=ors("email")
myMail.TextBody="This is your password" &" "& ors("password")
myMail.CreateMHTMLBody "file://E:/Falco/valley.htm"
myMail.Send
Set myMail=Nothing
oRs.close
set oRS=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Email</title></head>
<body>
<H2>Your message has been sent!</H2>
</BODY>
</html>