IIS Server - CDOSYS and E-mail problem

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > December 2005 > CDOSYS and E-mail problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CDOSYS and E-mail problem
Matthew

2005-12-31, 2:51 am

I have written a web page to use cdosys to e-mail. The page works fine on 2
of my 3 servers, all Windows 2003 with IIS 6.0 and ASP 2.0.

Anyways, on the one server I get the following error:

CDO.Configuration.1 error '8007007f'

The specified procedure could not be found.

/email.asp, line 17

Line 17 is the first line is the first to write to the CDO.Message object as
follows:

ObjSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

Since my code works on 2 other machines, I figure it has to be something in
the permissions. But the statement 'procedure could not be found' tells me
nothing. I am at a loss, any ideas would help.






Christopher Reed

2005-12-31, 5:54 pm

Verify that your version of CDO is the same on all servers. Also, I believe
SMTP needs to be available as well.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Matthew" <matthew%> wrote in message
news:eq3fJIeDGHA.336@TK2MSFTNGP14.phx.gbl...
>I have written a web page to use cdosys to e-mail. The page works fine on 2
> of my 3 servers, all Windows 2003 with IIS 6.0 and ASP 2.0.
>
> Anyways, on the one server I get the following error:
>
> CDO.Configuration.1 error '8007007f'
>
> The specified procedure could not be found.
>
> /email.asp, line 17
>
> Line 17 is the first line is the first to write to the CDO.Message object
> as
> follows:
>
> ObjSendMail.Configuration.Fields.Item
> ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
>
> Since my code works on 2 other machines, I figure it has to be something
> in
> the permissions. But the statement 'procedure could not be found' tells me
> nothing. I am at a loss, any ideas would help.
>
>
>
>
>
>



Egbert Nierop \(MVP for IIS\)

2005-12-31, 5:54 pm


"Christopher Reed" <carttu@nospam.nospam> wrote in message
news:u9dH4XhDGHA.1676@TK2MSFTNGP09.phx.gbl...
> Verify that your version of CDO is the same on all servers. Also, I
> believe SMTP needs to be available as well.


Addition,

CDOSYS is able to use a remote server.


Check your code against this...
as well, many VBS programmers forget to use the keyword Set

Set mail.Configuration = cdoConfig

and write:

mail.Configuration = cdoConfig

This might often work, but often not at all.


Public Sub SendMail(vFrom, vTo, vSubject, vCc)
Dim cdoConfig, mail, sch
'Response.Write vFrom
'Response.Write vTo
'Response.Write vSubject
'Response.Write vCC
Set cdoConfig = CreateObject("CDO.Configuration")
Set mail = CreateObject("CDO.Message")

sch = "http://schemas.microsoft.com/cdo/configuration/"
with cdoConfig.fields
.item(sch + "sendpassword").value = "*********"
.item(sch + "sendusername").value = "your SMTP user"
.item(sch + "sendusing").value = 2
.item(sch + "smtpserver").value = "192.168.0.7"
.Update()
End With
Set mail.Configuration = cdoConfig
mail.to = vTo
mail.From = vFrom
If not isempty(vCc) Then mail.Cc = vCc
If len(vSubject) > 255 Then
mail.TextBody = vSubject
vSubject = Left(vSubject,255)
End If
mail.Subject = vSubject
mail.Send
End Sub

> --
> Christopher A. Reed
> "The oxen are slow, but the earth is patient."
>
> "Matthew" <matthew%> wrote in message
> news:eq3fJIeDGHA.336@TK2MSFTNGP14.phx.gbl...
>
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com