This is the code that i've written:
Set objUN = objDB.Execute("Select * from users where useremail ='" & request("email"
& "'"
If request("username"
= "Get Username" then
If not objUN.EOF then
Set objSendMail = CreateObject("CDONTS.NewMail"
With objSendMail
.From = "my email address"
.To = request("email"
.Subject = "username"
.Body = objUN("username"
.Send
End With
End If
End If
I keep getting the error "Permission Denied" when i excute this code. Can anyone point out whats wrong in this code or any other method to send emails from ASP??
Set objUN = objDB.Execute("Select * from users where useremail ='" & request("email"
If request("username"
If not objUN.EOF then
Set objSendMail = CreateObject("CDONTS.NewMail"
With objSendMail
.From = "my email address"
.To = request("email"
.Subject = "username"
.Body = objUN("username"
.Send
End With
End If
End If
I keep getting the error "Permission Denied" when i excute this code. Can anyone point out whats wrong in this code or any other method to send emails from ASP??