Hi Using WIN XP and FP2000
Using CDO.message to out put a message from my site, I get the following
error message 8004020f from using the code:-
strsql = "SELECT * FROM details WHERE patid = " & request("to") & ";"
objrec.open strsql, objconn, adopenforwardon ly, adlockoptimisti c, adcmdtext
thetext = "Hello, " & request("nickto ") & " you have a new message on online
Connect from " & session("userna me") & "<br> <a target='_top'
href='http://www.onlineconne ct.biz/daters'><big><e m><strong>Clic k here to
log
into the site</strong></em></big></a> then check your messages.<br> Good
luck"
Set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
With cdoConfig.Field s
..Item(cdoSendU singMethod) = cdoSendUsingPor t
..Item(cdoSMTPS erver) = "pegasus.intone t.co.uk"
..Update
End With
Set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
With cdoMessage
Set.Configurati on = cdoConfig
..From = "webmaster@onli neconnect.biz"
..To = objrec("emailad dress")
..cc = "ulyssian@hotma il.com"
..Subject = "New messgage from Online Connect"
..HTMLBody = thetext
..Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
any ideas?? thanks in advance Hugh
Using CDO.message to out put a message from my site, I get the following
error message 8004020f from using the code:-
strsql = "SELECT * FROM details WHERE patid = " & request("to") & ";"
objrec.open strsql, objconn, adopenforwardon ly, adlockoptimisti c, adcmdtext
thetext = "Hello, " & request("nickto ") & " you have a new message on online
Connect from " & session("userna me") & "<br> <a target='_top'
href='http://www.onlineconne ct.biz/daters'><big><e m><strong>Clic k here to
log
into the site</strong></em></big></a> then check your messages.<br> Good
luck"
Set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
With cdoConfig.Field s
..Item(cdoSendU singMethod) = cdoSendUsingPor t
..Item(cdoSMTPS erver) = "pegasus.intone t.co.uk"
..Update
End With
Set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
With cdoMessage
Set.Configurati on = cdoConfig
..From = "webmaster@onli neconnect.biz"
..To = objrec("emailad dress")
..cc = "ulyssian@hotma il.com"
..Subject = "New messgage from Online Connect"
..HTMLBody = thetext
..Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
any ideas?? thanks in advance Hugh
Comment