Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error creating CDONTS on windows xp pro

Status
Not open for further replies.

043348903

Programmer
Dec 4, 2002
8
AE
hello everyone!!!i have the same problem with my email page..

i have tried eveything but it just doesnt seem to work.

could some pls tell me the lines of code for creatins the object for mail..

i am currnently using the lines


Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = Request.Form(&quot;firstName&quot;) & &quot; &quot; & Request.Form(&quot;lastName&quot;) & &quot; <&quot; & strReturnEmailAddress & &quot;>&quot;
objCDOMail.To = strMyEmailAddress
objCDOMail.Cc = strCCEmailAddress
objCDOMail.Bcc = strBCCEmailAddress
objCDOMail.Subject = &quot;Enquiry sent from enquiry form on website&quot;
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = strBody
objCDOMail.Importance = 2
objCDOMail.Send
Set objCDOMail = Nothing


but it gives me an error sayin that &quot;error creating object&quot;

or else if some noe could tell me how i could just go to outlook fron the page after selecting the email id'd to where i wish to send the mails...without using the hreff..

cause i need to import the email id's from the sql server and then be able to out them in the cc text box and send the mail..implyin he sql server is my address bool..

thanks in advance cuase i know i can count u guyss

sameer

 
? Do you have CDONTS components
is this being run on a local machine?

if the object cannot be created then the main cause is you do not have the components installed. have you checked to see what you should be using? ASPMail, ASPEmail etc... _______________________________________________
[sub]{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }[/sub]
_______________________________________________
for the best results to your questions: FAQ333-2924

 
i dont know..how do i know if the component is insatlled..and if i dont how do get it..
 

_______________________________________________
[sub]{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }[/sub]
_______________________________________________
for the best results to your questions: FAQ333-2924

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top