Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: SMTP (CDONTS) w/Exchange Server 5.5 - Question for Siegfried


Message #1 by "Binu Mathew" <binu_k_mathew@h...> on Tue, 8 Jan 2002 14:23:03
Hello,



I purchased your book, ?Professional CDO Programming? and it has helped me 

out tremendously.  However, I still have just one question to ask you 

regarding CDO version 1.21.  I have written an email program in ASP using 

CDO to send email to users in our database who wish to receive email.  We 

would now like to send HTML email.  However, I read on Microsoft?s website 

that only text email can be sent using CDO and not HTML.  Is this true?  

Microsoft says that CDO 1.21 uses MAPI version 1.0 to send email.  MAPI 

1.0 does not reliably support the creation of HTML-formatted messages so 

Microsoft recommends alternative solutions using SMTP.  



We are using a small business server with IIS 4.0 and Exchange Server 5.5 

loaded on it.  Our network administrator insists that we cannot configure 

IIS to use SMTP on our server, which also has Exchange loaded on it.  But 

I read in various posts on this site that it is possible to configure IIS 

to use SMTP on a machine, which has Exchange loaded on it.  In your 

professional opinion, is this something that can or cannot be done?



Thank you,



Binu Mathew

Message #2 by "Siegfried Weber" <sweber@c...> on Wed, 9 Jan 2002 08:33:24 +0100
As you have already figured out CDO 1.21 (and Extended MAPI) isn't

capable to send HTML formatted messages. A lot of people tried hacking

this using Extended MAPI (requires C/C++ or Delphi) with mixed success.



However, CDONTS (comes with NT 4/IIS4 SMTP Service and Windows 2000) or

CDOSYS (comes with Windows 2000/XP and Windows .NET Server) can be used

to easily send HTML formatted messages.



It is absolutely possible to have CDONTS and Exchange 5.5 side-by-side

working on a single machine. The issue is how to get CDONTS installed.



The recommended method on a new installation is:



1. Install NT 4

2. Install NT 4 SP3

3. Install IE 4.01 SP2 (or higher)

4. Install the IIS 4 Option Pack and *include* the IIS 4 SMTP Service

5. Install the latest NT 4 SP (currently SP6a) and hotfixes

6. Install Exchange 5.5 Server

7. Install the latest Exchange 5.5 Server SP (currently SP4) and

hotfixes.



After that configure the Exchange 5.5 IMS (Internet Mail Services =3D>

SMTP Connector) as you like. It will detect a running IIS4 SMTP Service

and take over responsibility by disabling the IIS 4 SMTP Service and

change the Registry/IIS-Metabase to point to the Exchange 5.5 IMS. The

Registry/IIS-Metabase changes are necessary to point CDONTS submitted

mails to the appropriate pickup directory on the hard disk.



Installing CDONTS after you have a proper working Exchange 5.5 machine

might be a little bit harder because you basically must follow (more or

less) the same steps above. That said, here's how it is supposed to work

(note that I never did it that way myself- though):



1. Stop the Exchange 5.5 IMS

2. Install IIS 4 Option Pack IIS 4 SMTP Service

3. Reapply the latest NT 4 SP and hotfixes

4. Reapply the latest Exchange 5.5 SP and hotfixes

5. Start the Exchange 5.5 IMS again



Doing it that way the Exchange 5.5 IMS recognizes now that the IIS 4

SMTP Service is present and does the changes described above.



Additional Microsoft Knowledge Base articles about CDONTS/CDOSYS can be

found at http://www.cdolive.com/kbcdontsys.htm.



Good luck!



<Siegfried />



> -----Original Message-----

> From: Binu Mathew [mailto:binu_k_mathew@h...]

> Sent: Tuesday, January 08, 2002 3:23 PM

> To: ASP CDO

> Subject: [asp_cdo] SMTP (CDONTS) w/Exchange Server 5.5 - Question for

> Siegfried

>

> Hello,

>

> I purchased your book, "Professional CDO Programming" and it has

helped me

> out tremendously.  However, I still have just one question to ask you

> regarding CDO version 1.21.  I have written an email program in ASP

using

> CDO to send email to users in our database who wish to receive email.

We

> would now like to send HTML email.  However, I read on Microsoft's

website

> that only text email can be sent using CDO and not HTML.  Is this

true?

> Microsoft says that CDO 1.21 uses MAPI version 1.0 to send email.

MAPI

> 1.0 does not reliably support the creation of HTML-formatted messages

so

> Microsoft recommends alternative solutions using SMTP.

>

> We are using a small business server with IIS 4.0 and Exchange Server

5.5

> loaded on it.  Our network administrator insists that we cannot

configure

> IIS to use SMTP on our server, which also has Exchange loaded on it.

But

> I read in various posts on this site that it is possible to configure

IIS

> to use SMTP on a machine, which has Exchange loaded on it.  In your

> professional opinion, is this something that can or cannot be done?

>

> Thank you,

>

> Binu Mathew

>




$subst('Email.Unsub').


  Return to Index