Custom CDO app throws error CDO_E_FAILED_TO_CONNECT

Recently I was working with a customer (at his Windows XP) where his CDO app (CDOSEND.vbs – given below) is failing to send email and throws the error “CDO_E_FAILED_TO_CONNECT” (you can refer the below given Output also). We tried setting CONFIG parameters like user name, SLL, password – but it doesn’t help. Code Snippet: Option…


Migrated custom C++/CDOSYS app throws compiler errors

Recently I was working with one of the developer who earlier designed an CDOSYS based mail component in his C++ application built using earlier Visual Studio (2005) version . After migration to VS 2008 environment, they noticed compile errors with the same code/no changes made. When I debugged further and noticed that the msado15.tlh and…

2

Part 1 : Developer Roadmap – Development Technologies for Exchange Server 2010

This two part article is targeted for the developer audience, if you’re the developer who want to create a develop custom application for Exchange Server 2010 or already has custom application designed for previous versions of Exchange Server 2010. Some Exchange programming technologies that are available in versions of Exchange earlier than Microsoft Exchange Server…

1

CDONTS, CDOSYS, System.Web.Mail & System.Net.Mail

Microsoft Windows Server 2003 does not install Collaboration Data Objects (CDO) for NTS (CDONTS). Therefore, applications that use CDONTS do not function on a Windows Server 2003-based computer. Windows Server 2003 provides improved alternatives to CDONTS. To make applications that use CDONTS function on a Windows Server 2003-based computer, update existing CDONTS applications to use…


Unicode mails send using CDOSYS & Bodypart show special or funny characters in message body

Recently I was working with a Customer who uses ASP & CDOSYS to send Unicode content e-mails. He had the following partial code-snippet: … Set objMail = Server.CreateObject("CDO.Message") ‘Create CDO.Message Object Set objBodyPart = objmail.BodyPart ‘Create BodyPart objBodyPart.Charset = "UTF-8" ‘Set relevant Charset   Set objConf = Server.CreateObject("CDO.Configuration") ‘Create Configuration Object Set objFields = objConf.Fields…

1

Relationship between CDOSYS & CDOEX

CDOEX is a superset of CDOSYS; this means that CDOEX contains all of the functionality of CDOSYS, plus additional functionality for use with Microsoft Exchange Server 2000. When CDOEX is installed on a computer, it takes over the functionality that was previously provided by CDOSYS. Any program that makes calls to CDOSYS will now call…

1

How to configure user permissions to relay e-mail message through SMTP Service?

You need to configure the user permissions to relay e-mail messages through the SMTP service. Do the following steps: Click Start, click Run, type inetmgr or open Internet Information Manager from Control Panel > Administrative Tools, and then click OK. Expand ComputerName, and then right-click a valid SMTP virtual server. Note The placeholder ComputerName represents…

3

Sending email using CDO & remote SMTP Server

Assume that the computer on which this example will run has neither a SMTP service nor Microsoft Outlook® Express installed. In this case, you need to send the message through some SMTP service on the network and must configure the Message object completely. Further assume that the SMTP service through which you intend to send…

1

Test and troubleshooting tools for various Exchange technologies

I tried to compose the test and troubleshooting tools for various exchange technologies. This initial list upto Exchange Server 2003.    Technology   Tools for test and troubleshooting tools Active Directory Services Interfaces (ADSI)   All standard test and debugging tools, as well as other Microsoft and third-party test and debugging tools, can be used.  …


CDOSYS + Quoted-printable

  Code snippet     ‘private void cmdSend_Click(object sender, System.EventArgs e)   {   try   {   CDO.Message oMsg = new CDO.MessageClass();   CDO.Configuration oConfig = new CDO.ConfigurationClass();   ADODB.Fields oFields = oConfig.Fields;   StringBuilder MailString = new StringBuilder();   int x = 1000;   // Set up configuration to send to remote SMTP…


KB : Where to get the CDO libraries for all the versions?

As you know that the Collaboration Data Objects (all versions) Libraries are used to implement Messaging and Collaboration functionality into a custom application. Please find this article contains information on where these libraries can be found. http://support.microsoft.com/kb/171440


MAPI : Do you know why MAPI is not suitable for HTML messages?

Do you know why MAPI is not suitable for HTML messages?   MAPI 1.0 was written before HTML mail was developed and does not reliably support the creation of HTML-formatted messages. As you know, MAPI 1.0 is the version supported by all versions of Microsoft Exchange through version 5.5 (and all Service Packs). This includes…


Exchange Server – Technologies – FAQ

Exchange Server – Frequently Asked Questions  When we do Exchange programming with client and server versions of the Exchange Server Providers, MAPI32, EMSMDB, EMSABP and MSPST32 almost or always causes confusion. In this article, we’ll discuss about the common terminologies:  What is MAPI?  MAPI will generally mean MAPI32.dll, or the APIs contained. It’s an API, implemented largely in…

1