Home > ASP Development > CDONTS.NewMail.1 error '80020009'

CDONTS.NewMail.1 error '80020009'



Hello im having a problem sending an email from an asp page



here is the code






Code:



Set Mail = Server.CreateObject("CDONTS.NewMail")
Mail.From = "myE-mailHere@myDomain.com"
Mail.To = "me@mycompany.com"
Mail.BCC= email
Mail.Subject = "Welcome to Kindis website"
Mail.BodyFormat = 0
Mail.MailFormat = 0
Mail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>"
Mail.Send
Set Mail = Nothing <---- Line 121
%>






when i try sending the email i get this error:



CDONTS.NewMail.1 error '80020009'



Unable to connect to server



/kindis/register4.asp, line 121



does it have to be with the mail server im sending to or should i be including a file in this file?



help please and thanks in advance.

    
Guest


Note: I used to get a "Server did not respond" error. and then it changed to this.

Was this answer helpful ? Yes No   
Guest


if using server 2003 or xp pro you cannot use cdonts UNLESS d/l .dll if this is the case than you need to use cdo/cdosys



If not

- ensure smtp relaying is on

- smtp services is running and has a qualified name

Was this answer helpful ? Yes No   
Guest


No im using Apache in win XP home

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by alkindyss
No im using Apache in win XP home


Not gonna happen, sorry



ASP = IIS

XP_HOME = NO_IIS

XP_PRO = IIS

IIS = MS

MS = CDONTS

--------------------

APACHE = LINUX





Solution = SOL

Was this answer helpful ? Yes No   
Guest


Apache is an excellent web server but on Linux/UNIX only. I would advise to use IIS on Windows machines.

Was this answer helpful ? Yes No   
Guest


But Apache does support ASP.

Does this mean that its not gonna work.

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by ASP-Hosting.ca
Apache is an excellent web server but on Linux/UNIX only. I would advise to use IIS on Windows machines.






yes - i should have steered you in a better way....i was in a joking mood(the SOL solution(sh#t out of luck))...apologies.



1. upgrade to xp pro (xp home edition does not have server capabilities); hence, XP_HOME = NO_IIS



2. Install IIS off of XP PRO cd



3. Cannot use CDONTS unless you d/l; but not worth it. Stay up-to-date - use cdo http://www.codeproject.com/dotnet/S...l_SMTP_AUTH.asp



Good Luck!

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by alkindyss
But Apache does support ASP.



Does this mean that its not gonna work.






there may be a 3rd party component, but you'll pay for it...i don't recall this being possible on an apache machine....better to go w/ a MS solution(IIS/XP Pro) since you are working with all MS products/methods...etc..simply upgrade and you're set

Was this answer helpful ? Yes No   
Guest


Only NT/2000 Server has CDONTS CDO(NTS) (NTS) = (NT Server) - or at least that is what it was like when I was using Win 98 and Win 2K Pro. I haven't looked since I moved to XP Pro as I just assumed it was the same

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved