Aleksandar's computer workshop

Let's see what Aleksandar was fixing today.
My findings, tips & tricks related to computers, internet, programming and other stuff I was working with.

cdonts on Windows 2003

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject("CDONTS.NewMail") Server.CreateObject failed windows 2003

I am working on IIS 6...and I cannot even find the dll smtpsvg.dll when I run regsvr32...
My createobject fails everytime :(.
I first started dickering around with permissions, then I realized the dll isn't even on the server. What mind-bogglingly basic error am I making here?Set Msg = server.createobject("CDONTS.Newmail")Thanks for any guidance! :)

you're using Windows 2003 Server you need to use Server.CreateObject("CDO.Message")")CDo runs on Windows 2003, CDONTs does not.Here is the code I use:  I wouldn't screw around with the configuration as mentioned...alwasy seems to mess it up.  All default should work fine with your host:Code below works, I use it: uses port 25, no configuration. Had problem with configuration on local machine.strTo = ""    'Make sure the From field has no spaces.strFrom = ""strSubject = "Your Subject"strBody = "The content of email"' Create an instance of the NewMail object.Set objCDOMail = Server.CreateObject("CDO.Message")' Set the properties of the objectobjCDOMail.Sender = StrFromobjCDOMail.To = strToobjCDOMail.Subject = strSubjectobjCDOMail.TextBody = strBody' Some of the more useful ones I've included samples of here:'objCDOMail.Cc = ";"   Notice this sending to more than one person!'objCDOMail.Bcc = ";"'objCDOMail.Importance = 1'objCDOMail.AttachFile "c:\path\filename.txt", "filename.txt"' Send the message!objCDOMail.Send' Set the object to nothing because it immediately becomes' invalid after calling the Send method + it clears it out of the Server's Memory.Set objCDOMail = Nothing

: I am getting the error "Server.CreateObject Failed": on the following line of code on a Windows Server 2003 box::: 
Set oCDONTS = Server.CreateObject("CDONTS.NewMail"):: Is CDONTS no longer included with Server 2003?: Any advice on how to address this problem would: be most welcome.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~CDONTS (CDO for NT Server) is deprecated. It was included with Windows 2000for backwards compatibility.Options:a) Use CDOSYS instead (CDO for Windows 2000). Joshua posted a link, or youcan use: get to the home page/b) Get a copy of CDONTS off an old machine and register it on your WIndows2003 Server. I would only recommend doing this if you have a lot of oldercode already that uses CDONTS and you have moved the site over to a Windows2003 Server. Since CDONTS is not supported on Windows 2003 Server you don'tknow how long it'll keep working.


This is a personal blog. The views and opinions expressed here represent my own and not those of the people, institutions or organizations that I may or may not be related with unless stated explicitly.

The information in this weblog, available code samples and software are provided "AS IS" without any warranty, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. I will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason.

Also, my thoughts and opinions change from time to time as I come to learn more and develop my understanding about the things and issues that I am blogging about. This blog just provides a snapshot of the knowledge, views, and opinions that I hold at a particular point of time and these might most probably change over a period of time. I reserve the right to evolve my knowledge, thoughts, and viewpoints over time and to change them without assigning any reason.

My blog includes links to other sites/blogs operated by third parties. These are provided as a means of convenient access to you to the information/opinion contained therein. I am in no way responsible for the content of any other sites or any products or services that may be offered through other sites.

Comments and emails are welcome. Feel free to challenge me, disagree with me, tell me I’m completely nuts, be off-topic, post spam or marketing message but I reserve the right to delete any comment for any reason whatsoever - so keep it polite, please. I may not be able to reply to all comments and email.

I am not responsible for the content in comments other than those made by me, or in blogs or other online content that I may link to.

Please note that even if it is not visible as a post on the main page of my blog this disclaimer applies to complete content hosted under domain, regardless of when they are published.

How to wire Ethernet Cables also known as UTP CAT5 patch cables

Every so often I come across a cable only running in half duplex with severe packet loss, only to find out it was incorrectly wired. In 1991 EIA/TIA released their joint 568 Commercial Building Wiring Standard. These standards help reduce electro-magnetic interference to ensure rated cable speeds.

About the Cable

You can find bulk supplies of the cable at many computer stores or most electrical or home centers. You want UTP (Unshielded Twisted Pair) Category 5 cable for basic 10/100 functionality. You need CAT 5e for gigabit (1000BaseT) operation and CAT 6 gives you a measure of future proofing. Bulk cable comes in many types, there are 2 basic categories, solid and braided cable. Braided cable tends to work better in "patch" applications for desktop use. It is more flexible and resiliant than solid cable and easier to work with, but really meant for shorter lengths. Solid cable is meant for longer runs in a fixed position. Plenum rated cable should/must be used whenever the cable travels through an air circulation space. For example, above a false celing or below a raised floor. 

CAT5 Cable internal structure

Inside the cable, there are 8 color coded wires. These wires are twisted into 4 pairs of wires, each pair has a common color theme. One wire in the pair being a solid or primarily solid colored wire and the other being a primarily white wire with a colored stripe (Sometimes cable doesn't have any color on the striped cable, the only way to tell is to check which other wire it is twisted around). The twists are extremely important. They are there to counteract noise and interference. It is important to wire according to a standard to get proper performance from the cable. 

About the RJ45 Ends

The RJ45 end is a 8-position modular connector that looks like a large phone plug. There are a couple variations available. The primary variation you need to pay attention to is whether the connector is intended for braided or solid wire. For braided/stranded wires, the connector has contacts that actually pierce the wire. For solid wires, the connector has fingers which pierce the insulation and make contact with the wire by grasping it from both sides. The connector is the weak point in an ethernet cable, choosing the wrong one will often cause grief later. If you just walk into a computer store, it's nearly impossible to tell what type of connector it is.

RJ45 Plugs

About the cable types

There are 3 main types of RJ-45 cables that you will run across in networking, both LAN and WAN. Some interfaces can cross and un-cross a cable automatically as needed. The TIA/EIA-568-A specifies two wiring standards for a 8-position modular connector such as RJ45. The two wiring standards, T568A and T568B vary only in the arrangement of the colored pairs. Your choice might be determined by the need to match existing wiring, jacks or personal preference, but you should maintain consistancy. 
  • Straight-through or standard patch cable, the colored wires are in the same sequence at both ends of the cable, which is used to connect to a hub or switch.
  • Crossover or cross-connect cable, the first (far left) colored wire at one end of the cable is the third colored wire at the other end of the cable, used to operate in a peer-to-peer fashion without a hub/switch.
  • Rolled, Rollover or Console cable, the colored wires at one end of the cable are in the reverse sequence of the colored wires at the other end of the cable. Mostly used to configure routers via console.

T568B CAT5 Specification and RJ45 Plug pin numbering


Different EIA/TIA-568 wiring specifications


Sample of prepared plugs as standard patch cable 


RJ45 Crimping tool





Video: How to make a Cat5e Network Cable