Anthony904
IS-IT--Management
I was given the task of moving other developers webpages to a new server..
I found a problem with the mailing code they were using.. The old server
supported ASPMAIL.. the new server supports CDONTS. I am stuck here having to
convert each page. So far I am able to convert all pages fine.. I have run into
a problem..
My problem is I am getting an error:
The error points to the line:
Mailer.To rst("name"), rst("email")
in this section of the code:
The section above is trying to mail to a distribution list.
For Testing purposes.. I added line:
Mailer.To = "myemail@yahoo.com"
to the code and it e-mails fine.
- I say again this isn't my code, I'm just here to move the pages over and make them work.
( I could go to the developer but he's gone )
If you need to see more code.. let me know..
Thanks for your help..
I found a problem with the mailing code they were using.. The old server
supported ASPMAIL.. the new server supports CDONTS. I am stuck here having to
convert each page. So far I am able to convert all pages fine.. I have run into
a problem..
My problem is I am getting an error:
Code:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'Mailer.to'
The error points to the line:
Mailer.To rst("name"), rst("email")
in this section of the code:
Code:
set rst = dbcon.execute("SELECT * from DISTRIBUTION WHERE form = 'CSA' AND type = 'TO'")
while not rst.eof
if len(rst("email")) > 0 then
'Mailer.To rst("name"), rst("email")
Mailer.To = "myemail@yahoo.com"
end if
rst.movenext
wend
rst.close
The section above is trying to mail to a distribution list.
For Testing purposes.. I added line:
Mailer.To = "myemail@yahoo.com"
to the code and it e-mails fine.
- I say again this isn't my code, I'm just here to move the pages over and make them work.
( I could go to the developer but he's gone )
If you need to see more code.. let me know..
Thanks for your help..