|
 |
asp_cdo thread: Something wrong with my code or did someone screw something up on the server?
Message #1 by "Pierre du Toit" <greywacke@f...> on Tue, 19 Mar 2002 01:11:32
|
|
I am a freelancing ASP (using vbScript) and DHTML (using JavaScript)
developer and I bought the ASP 3.0 Programmer's Reference over 18 months
ago when I moved from ASP 2.0, but never really found the need to use
these forums until now. I hope that someone may be of assistance in
helping me solve the following scenario scripted in vbScript.
This is the configuration object instantiated within the
Application_OnStart event of global.asa:
'START SNIPPET
'----- CDO for Win2K Mail Configuration ---------------------------
---------
Set Application("pdtCfg") = Server.CreateObject("CDO.Configuration")
With Application("pdtCfg").Fields
'----- Remark following line for offline, unremark for online -----
---------
.Item(cdoSendUsingMethod) = cdoSendUsingPort
'----- Remark following line for online, unremark for offline -----
---------
'.Item(cdoSendUsingMethod) = cdoSendUsingPickup
'----- Enter mail server and authentication method, as well as
timeout -----
.Item(cdoSMTPServer) = "valid-email-server"
.Item(cdoSMTPAuthenticate) = cdoAnonymous
.Item(cdoSMTPConnectionTimeout) = 20
'----- Pickup directory for offline messages, remark for online ---
---------
'.Item(cdoSMTPServerPickUpDirectory) = "D:\Inetpub\mailroot\Pickup"
'----- Update configuration ---------------------------------------
---------
.Update
End With
'END SNIPPET
The above configuration is called when sending a mail by using:
'START SNIPPET
'----- Load application level configuration for mail --------------
---------
objMsg.Configuration = Application("pdtCfg")
'END SNIPPET
Right after objMsg has been instantiated as a "CDO.Message" object. The
error I get every time the page tries to send an email is:
error '80040211'
/ssi/subs.asp, line 924
Line 924 is objMsg.Send
It worked perfectly a few times - but then all of a sudden it started
giving this error each time the page tries to send mail. I do not have
physical access to the server, and the Admin's are an arrogant bunch.
Could anyone inform me on what that error would mean? How it can be
repaired? Any tips?
Thanks in advance,
Pierre du Toit.
Message #2 by "Pierre du Toit" <greywacke@f...> on Tue, 19 Mar 2002 18:22:45
|
|
> I am a freelancing ASP (using vbScript) and DHTML (using JavaScript)
d> eveloper and I bought the ASP 3.0 Programmer's Reference over 18 months
a> go when I moved from ASP 2.0, but never really found the need to use
t> hese forums until now. I hope that someone may be of assistance in
h> elping me solve the following scenario scripted in vbScript.
> This is the configuration object instantiated within the
A> pplication_OnStart event of global.asa:
> 'START SNIPPET
> '----- CDO for Win2K Mail Configuration ---------------------------
-> --------
S> et Application("pdtCfg") = Server.CreateObject("CDO.Configuration")
> With Application("pdtCfg").Fields
> '----- Remark following line for offline, unremark for online -----
-> --------
> .Item(cdoSendUsingMethod) = cdoSendUsingPort
> '----- Remark following line for online, unremark for offline -----
-> --------
> '.Item(cdoSendUsingMethod) = cdoSendUsingPickup
> '----- Enter mail server and authentication method, as well as
t> imeout -----
> .Item(cdoSMTPServer) = "valid-email-server"
> .Item(cdoSMTPAuthenticate) = cdoAnonymous
> .Item(cdoSMTPConnectionTimeout) = 20
> '----- Pickup directory for offline messages, remark for online ---
-> --------
> '.Item(cdoSMTPServerPickUpDirectory)
= "D:\Inetpub\mailroot\Pickup"
> '----- Update configuration ---------------------------------------
-> --------
> .Update
> End With
> 'END SNIPPET
> The above configuration is called when sending a mail by using:
> 'START SNIPPET
> '----- Load application level configuration for mail --------------
-> --------
> objMsg.Configuration = Application("pdtCfg")
> 'END SNIPPET
> Right after objMsg has been instantiated as a "CDO.Message" object. The
e> rror I get every time the page tries to send an email is:
> error '80040211'
/> ssi/subs.asp, line 924
> Line 924 is objMsg.Send
I> t worked perfectly a few times - but then all of a sudden it started
g> iving this error each time the page tries to send mail. I do not have
p> hysical access to the server, and the Admin's are an arrogant bunch.
C> ould anyone inform me on what that error would mean? How it can be
r> epaired? Any tips?
> Thanks in advance,
P> ierre du Toit.
Message #3 by "Pierre du Toit" <greywacke@f...> on Tue, 19 Mar 2002 18:23:54
|
|
K, I think the problem was that the mail server i was using was down...
its working fine again... but I think you will occasionally see me drop by
here and give my 2p worth ;)
Pierre du Toit.
|
|
 |