473,625 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS.NewMail. 1 error '80020009' unable to connect to server

I get the follow error on a linux box that is running sun asp:
CDONTS.NewMail. 1 error '80020009' unable to connect to server

The error occurs when the Send Command is Executed.

Here is my code

Dim objCDO 'CDO object

' Send it to ...
SendTo = "ch****@qqest.c om"
MailSubject = "WaterSaver s Custormer Service Inquiry"

' Read in the values entered
CompanyName = Request( Trim( "companyNam e" ) )
YourName = Request( Trim( "yourName" ) )
YourTitle = Request( Trim( "yourTitle" ) )
YourMail = Request( Trim( "yourMail" ) )
YourPhone = Request( Trim( "yourPhone" ) )
QuestionQuery = Request( Trim( "question_query " ) )

' Body of Email
MailBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0
Transitional//EN"">" & vbCrLf _
& "<html>" & vbCrLf _
& "<head>" & vbCrLf _
& " <title>Custom er Service Inquiry</title>" & vbCrLf _
& " <meta http-equiv=Content-Type content=""text/html;
charset=iso-8859-1"">" & vbCrLf _
& "</head>" & vbCrLf _
& "<body bgcolor=""#FFFF FF"">" & vbCrLf _
& " <h2>Customer Service Inquiry</h2>" & vbCrLf _
& " <p>" & vbCrLf _
& " <b>Company Name:</b> " & CompanyName & "<br>" & vbCrLf _
& " <b>Name:</b> " & YourName & "<br>" & vbCrLf _
& " <b>Title:</b> " & YourTitle & "<br>" & vbCrLf _
& " <b>EMail:</b> " & YourMail & "<br>" & vbCrLf _
& " <b>Phone Number:</b> " & YourPhone & "<br>" & vbCrLf _
& " <b>Questions/Queries:</b> " & QuestionQuery & "<br>" & vbCrLf _
& "</body>" & vbCrLf _
& "</html>" & vbCrLf
Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")
objCDO.From = YourMail
objCDO.To = SendTo
objCDO.Subject = MailSubject
objCDO.Body = MailBody

' Send the message!
objCDO.Send 'error occurs here

Set objCDO = Nothing
Any help would be appreciated. Thanks
Jul 19 '05 #1
1 4065
Use CDO.Message (see http://www.aspfaq.com/2026 for code and why).

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Chris" <ch****@qqest.c om> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I get the follow error on a linux box that is running sun asp:
CDONTS.NewMail. 1 error '80020009' unable to connect to server

The error occurs when the Send Command is Executed.

Here is my code

Dim objCDO 'CDO object

' Send it to ...
SendTo = "ch****@qqest.c om"
MailSubject = "WaterSaver s Custormer Service Inquiry"

' Read in the values entered
CompanyName = Request( Trim( "companyNam e" ) )
YourName = Request( Trim( "yourName" ) )
YourTitle = Request( Trim( "yourTitle" ) )
YourMail = Request( Trim( "yourMail" ) )
YourPhone = Request( Trim( "yourPhone" ) )
QuestionQuery = Request( Trim( "question_query " ) )

' Body of Email
MailBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0
Transitional//EN"">" & vbCrLf _
& "<html>" & vbCrLf _
& "<head>" & vbCrLf _
& " <title>Custom er Service Inquiry</title>" & vbCrLf _
& " <meta http-equiv=Content-Type content=""text/html;
charset=iso-8859-1"">" & vbCrLf _
& "</head>" & vbCrLf _
& "<body bgcolor=""#FFFF FF"">" & vbCrLf _
& " <h2>Customer Service Inquiry</h2>" & vbCrLf _
& " <p>" & vbCrLf _
& " <b>Company Name:</b> " & CompanyName & "<br>" & vbCrLf _
& " <b>Name:</b> " & YourName & "<br>" & vbCrLf _
& " <b>Title:</b> " & YourTitle & "<br>" & vbCrLf _
& " <b>EMail:</b> " & YourMail & "<br>" & vbCrLf _
& " <b>Phone Number:</b> " & YourPhone & "<br>" & vbCrLf _
& " <b>Questions/Queries:</b> " & QuestionQuery & "<br>" & vbCrLf _
& "</body>" & vbCrLf _
& "</html>" & vbCrLf
Set objCDO = Server.CreateOb ject("CDONTS.Ne wMail")
objCDO.From = YourMail
objCDO.To = SendTo
objCDO.Subject = MailSubject
objCDO.Body = MailBody

' Send the message!
objCDO.Send 'error occurs here

Set objCDO = Nothing
Any help would be appreciated. Thanks

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4700
by: | last post by:
Hi Guys CDONTS works with all sites hosted on my test server bar one (which surely rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up the site in which CDONTS to one of the IIS "sites" which is known to work with CDONTS, and still, no email received. The bad mail dir gets three files each time, the error is:
5
4327
by: Krishnan | last post by:
Hello I am trying have a feed back page and created an ASP page to send an email. But I get the following error: Error Type: Server object, ASP 0177 (0x800401F3) Invalid class string The line in the page is as follows:
5
8378
by: RIP | last post by:
The time came to upgrade the webserver from 2k server to 2k3 server. In 2k server, the primary web ran flawlessly day after day. I burned the web's files to disk, and put them into the new server, seemed to work til i came to a point where the script needed to mail some people. Script is written in ASP 3.0, and the error is Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object: 'CDONTS.NewMail'
6
8156
by: vasanth kumar | last post by:
I am running the following script for sending e-mail thro web Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "vkumar@ugs.com" objCDOMail.To = "vkumar@ugs.com" objCDOMail.Subject = "Library books" objCDOMail.BodyFormat = 0 objCDOMail.MailFormat = 0 objCDOMail.Body = "hi" objCDOMail.Send
16
3159
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine. They're getting an error from: Set objCDOMail = Server.CreateObject("CDONTS.NewMail") I know that the new format is:
3
5899
by: Paul | last post by:
I am using the CDONTS.NewMail object to send e-mail programmatically. We upgraded our IIS server from NT to Windows 2003 Server. Now it does not appear that the CDONTS object is available on the 2003 Server? Is this correct? If so, how does one send e-mail programmatically on 2003 Server using
5
2622
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria. All this worked perfectly when I was sending text emails, but since I
5
27692
by: MichaelK | last post by:
What do I need to do to enable CDONTS om my macine to make it working I'm testing the code: Dim objCDO Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.To = "xyz@xxxxx.com" objCDO.From = "zyx@zzzzz.com" objCDO.Subject = "TESST CDONTS MAIL" objCDO.Body = "SOME TEXT TO SEND OVER"
1
3738
by: SSG | last post by:
Dear All, I am new to ASP , I am using Win XP pro .. I am trying to send mail thru ASP pgm... BW is the coding....... <% Sub send_email(email_from, email_to, email_subject, email_body)
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.