Gordon Pollokoff
03-24-2000, 09:55 AM
I am trying to use the CDONTS Newmail object to send confirmation e-mails
to users from a website that allows anonymous access. Unfortunately, executing
the Send() method results in a JScript error of permission denied. The default
user (IUSR_MachineName) does have an account on our Exchange server. I have
run out of ideas. Any suggestions are welcome
Sorin
03-26-2000, 07:53 PM
Gordon,
Make sure the SMTP service is up and running (for example set Outlook Express
to send e-mail using that smtp server and send a test e-mail to yourself).
Make sure you have CDONTS object installed correctly - I user MS CDO 1.21
Library, if you have a development environment like Visual Studio you could
use OLE View tool to track it down and find the .dll that's responsible for
it's implementation.
Make sure you create the CDONTS object correctly.
Here is an example:
function SendMail()
dim varBody
dim myMail, varLineFeed
SendMail = false
varLineFeed = Chr(10)
On Error Resume Next
set myMail = Server.CreateObject("CDONTS.NewMail")
if (Not IsObject(myMail)) then
exit function
end if
myMail.From = "ClientSiteSurvey@tokyo.dresdnerkb.com"
myMail.To = "Sorin.Alexandrescu@tokyo.dresdnerkb.com"
myMail.Subject = "Client Site Survey"
varBody = "blah, blah" & varLineFeed
myMail.Body = varBody
myMail.Send
Set myMail = Nothing
SendMail = true
end function
Hope it helps,
Regards,
Sorin
"Gordon Pollokoff" <gordon@invokesystems.com> wrote:
>
>I am trying to use the CDONTS Newmail object to send confirmation e-mails
>to users from a website that allows anonymous access. Unfortunately, executing
>the Send() method results in a JScript error of permission denied. The
default
>user (IUSR_MachineName) does have an account on our Exchange server. I
have
>run out of ideas. Any suggestions are welcome