L
Larry
The following code fragment works as part of an page.asp but when I tried it
under asp.net I get an UnauthorizedAccessException. The text of the error
message talks about giving ASPUSER write access to a file but I have no idea
what file needs to get the permission. I tried to find it using filemon but
to no avail. There's nothing in any of the event logs or the IIS logs
indicating where the problem might be.
Can you help? All I want is to send a simple message out without having to
log into a session or create some exchange account. It was so simple under
asp; sigh.
' next we need to send an email out to Sales
Dim objMsg As Object
Dim strFrom, strTo, strSubject, strBody As String
Dim lngImportance As Int32
strFrom = "(e-mail address removed)"
strTo = "(e-mail address removed)" ' Trim(Request.Form("Email"))
strSubject = "Home Comfort Solution's Special Report Access on
Noise||Shield"
strBody = "This was a test from the Noise||Shield site."
lngImportance = 1
objMsg = Server.CreateObject("CDONTS.NewMail")
objMsg.Send(strFrom, strTo, strSubject, strBody, lngImportance)
objMsg = Nothing
-Larry
under asp.net I get an UnauthorizedAccessException. The text of the error
message talks about giving ASPUSER write access to a file but I have no idea
what file needs to get the permission. I tried to find it using filemon but
to no avail. There's nothing in any of the event logs or the IIS logs
indicating where the problem might be.
Can you help? All I want is to send a simple message out without having to
log into a session or create some exchange account. It was so simple under
asp; sigh.
' next we need to send an email out to Sales
Dim objMsg As Object
Dim strFrom, strTo, strSubject, strBody As String
Dim lngImportance As Int32
strFrom = "(e-mail address removed)"
strTo = "(e-mail address removed)" ' Trim(Request.Form("Email"))
strSubject = "Home Comfort Solution's Special Report Access on
Noise||Shield"
strBody = "This was a test from the Noise||Shield site."
lngImportance = 1
objMsg = Server.CreateObject("CDONTS.NewMail")
objMsg.Send(strFrom, strTo, strSubject, strBody, lngImportance)
objMsg = Nothing
-Larry