M
M P
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on
Server A and then I will use SMTP service of Server B. I already configured
IIS to use Server B as its SMTP Server but I got this error :
Microsoft VBScript runtime (0x800A0046)
Permission denied
Can you check my code:
<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "(e-mail address removed)"
sSender = "(e-mail address removed)"
sSubject = "Test"
sTo = "(e-mail address removed)"
DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")
With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>
Server A and then I will use SMTP service of Server B. I already configured
IIS to use Server B as its SMTP Server but I got this error :
Microsoft VBScript runtime (0x800A0046)
Permission denied
Can you check my code:
<%
DIM sBody, sFrom, sSender, sSubject, sTo, x
sBody = "Test content body, will it work"
sFrom = "(e-mail address removed)"
sSender = "(e-mail address removed)"
sSubject = "Test"
sTo = "(e-mail address removed)"
DIM iMsg
Set iMsg = Server.CreateObject("CDONTS.NewMail")
With iMsg
.To = sTo
.From = sFrom
.Subject = sSubject
.Body = sBody
.Send
End With
%>