PDA

View Full Version : Object already exists for MyCDONTSMail


Nironto
10-19-2005, 11:11 AM
Hi,
I have a web page which works perfectly on a system. But when I put it to production, it displays:

Error Type:
(0x8009000F)
Object already exists.
/test/iindex.asp, line 82

Here is my code.
I noticed that if I removed the line " MyCDONTSMail.Send".(Which is also the line 82) I will not get any error but then I won't get my mail sent either.

MyCDONTSMail.Subject="PCQ-Pre-Alert ~" & Title& ""
MyCDONTSMail.BodyFormat=0
MyCDONTSMail.MailFormat=0
MyCDONTSMail.Body=HTML

MyCDONTSMail.Send
set MyCDONTSMail=nothing

I need to get the mail working by getting this object already exists error fixed. Any help is greatly appreciated!

Bullschmidt
10-26-2005, 01:12 AM
I don't see where the object is created in the first place.

And here's a nice CDO link even if you don't use the attachment part:
Email (with Attachment)
http://www.asp101.com/samples/email_attach.asp

And this shows sending an e-mail using various e-mail objects:
Function to send an e-mail
http://www.hoopsguru.com/forum/functions/functions_send_mail.asp