473,218 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,218 software developers and data experts.

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.com"
MailSubject = "WaterSavers Custormer Service Inquiry"

' Read in the values entered
CompanyName = Request( Trim( "companyName" ) )
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>Customer Service Inquiry</title>" & vbCrLf _
& " <meta http-equiv=Content-Type content=""text/html;
charset=iso-8859-1"">" & vbCrLf _
& "</head>" & vbCrLf _
& "<body bgcolor=""#FFFFFF"">" & 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.CreateObject("CDONTS.NewMail")
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 4046
Use CDO.Message (see http://www.aspfaq.com/2026 for code and why).

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


"Chris" <ch****@qqest.com> wrote in message
news:c6**************************@posting.google.c om...
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.com"
MailSubject = "WaterSavers Custormer Service Inquiry"

' Read in the values entered
CompanyName = Request( Trim( "companyName" ) )
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>Customer Service Inquiry</title>" & vbCrLf _
& " <meta http-equiv=Content-Type content=""text/html;
charset=iso-8859-1"">" & vbCrLf _
& "</head>" & vbCrLf _
& "<body bgcolor=""#FFFFFF"">" & 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.CreateObject("CDONTS.NewMail")
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
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...
5
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...
5
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...
6
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"...
16
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....
3
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...
5
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...
5
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"...
1
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)
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.