Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS with Exchange Server


Message #1 by "jacob" <jpthomas@e...> on Tue, 19 Feb 2002 12:11:23
Hi All,



   I developed a distributed application in VB. It works perfectly ok in 

my Office P.C. But when i install it in my client's site i have problems. 

My Client have 2 Servers A. Application Server(W2k Adv Svr) B. Mail Server

(Exchange 2000). From my VB Apps i am connecting to a COM Object and 

trying to send mails using CDONTS. But it is going to the Badmail folder. 

Can you please tell me Why is this.  Is there any way of specifying how 

to route this mails to the Exchange Server. Please Help!!!.



Thanks & Regards



Jacob
Message #2 by "Binu Mathew" <binu_k_mathew@h...> on Tue, 19 Feb 2002 21:39:08 +0000

CDONTS send email using the SMTP service which comes with IIS and uses the 

directory c:\inetpub\Mailrrot\pickup for

outgoing mails at default. Unfortunately Exchange Server

uses a different directory for the same purpose,

at default c:\EXCHSRVR\imcdata\Pickup.



So the CDONTS directory will be ignored with Exchange

Server installed, CDONTS mails will not be delivered.



However, this can be fixed:



1) Stop the Exchange IMC-Service from the control panel

2) Copy all data incl. subdirectories from

   c:\EXCHSRVR\imcdata\*.* to c:\InetPub\Mailroot\*.*

   (Warning: locations and devices of directories

   can be different if you have choosen another

   dirs at installation time, e.g. e:\myInternet\Mailroot)

3) Search Registry for Key HKEY_LOCAL_MACHINE\System\

   CurrentControlSet\Services\MSExchangeIMC\Parameters

4) Change Value "RootDir" to c:\InetPub\Mailroot

5) Start the Exchange IMC-Service from the control panel

6) Test CDONTS mail delivery



I've tried this and have no problems sending email using CDONTS.



Binu K. Mathew





>From: "jacob" <jpthomas@e...>

>Reply-To: "ASP CDO" <asp_cdo@p...>

>To: "ASP CDO" <asp_cdo@p...>

>Subject: [asp_cdo] CDONTS with Exchange Server

>Date: Tue, 19 Feb 2002 12:11:23

>

>Hi All,

>

>    I developed a distributed application in VB. It works perfectly ok in

>my Office P.C. But when i install it in my client's site i have problems.

>My Client have 2 Servers A. Application Server(W2k Adv Svr) B. Mail Server

>(Exchange 2000). From my VB Apps i am connecting to a COM Object and

>trying to send mails using CDONTS. But it is going to the Badmail folder.

>Can you please tell me Why is this.  Is there any way of specifying how

>to route this mails to the Exchange Server. Please Help!!!.

>

>Thanks & Regards

>

>Jacob








_________________________________________________________________

Join the world?s largest e-mail service with MSN Hotmail. 

http://www.hotmail.com



Message #3 by "jacob" <jpthomas@e...> on Wed, 20 Feb 2002 05:00:35
Hi Binu,



Thankyou verymuch Binu. Please note that my Exchenge Server is running in 

a diffrent Machine and IIS is not installed in the Excvhange Server P.C. 

IIS is installed in the APP Server and my com object is also deployed in 

the same server. I read some article stating "if your SMTP port is mapped 

to another server then it will automatically re route all the mails in 

the C:\Inetpub\mailroot directory" Is this true. Can you please tell me 

how to find out the reason why it puts my mail to the badmails directory.



Any way the infos that you gave me also is news to me. Once again my 

sincire thanks for the same.



Thanks & Regards



Jacob

 

> 

> CDONTS send email using the SMTP service which comes with IIS and uses 

the 

> directory c:\inetpub\Mailrrot\pickup for

> outgoing mails at default. Unfortunately Exchange Server

> uses a different directory for the same purpose,

> at default c:\EXCHSRVR\imcdata\Pickup.

> 

> So the CDONTS directory will be ignored with Exchange

> Server installed, CDONTS mails will not be delivered.

> 

> However, this can be fixed:

> 

> 1) Stop the Exchange IMC-Service from the control panel

> 2) Copy all data incl. subdirectories from

>    c:\EXCHSRVR\imcdata\*.* to c:\InetPub\Mailroot\*.*

>    (Warning: locations and devices of directories

>    can be different if you have choosen another

>    dirs at installation time, e.g. e:\myInternet\Mailroot)

> 3) Search Registry for Key HKEY_LOCAL_MACHINE\System\

>    CurrentControlSet\Services\MSExchangeIMC\Parameters

> 4) Change Value "RootDir" to c:\InetPub\Mailroot

> 5) Start the Exchange IMC-Service from the control panel

> 6) Test CDONTS mail delivery

> 

> I've tried this and have no problems sending email using CDONTS.

> 

> Binu K. Mathew

> 

> 

> >From: "jacob" <jpthomas@e...>

> >Reply-To: "ASP CDO" <asp_cdo@p...>

> >To: "ASP CDO" <asp_cdo@p...>

> >Subject: [asp_cdo] CDONTS with Exchange Server

> >Date: Tue, 19 Feb 2002 12:11:23

> >

> >Hi All,

> >

> >    I developed a distributed application in VB. It works perfectly ok 

in

> >my Office P.C. But when i install it in my client's site i have 

problems.

> >My Client have 2 Servers A. Application Server(W2k Adv Svr) B. Mail 

Server

> >(Exchange 2000). From my VB Apps i am connecting to a COM Object and

> >trying to send mails using CDONTS. But it is going to the Badmail 

folder.

> >Can you please tell me Why is this.  Is there any way of specifying how

> >to route this mails to the Exchange Server. Please Help!!!.

> >

> >Thanks & Regards

> >

> >Jacob




> 

> 

> _________________________________________________________________

> Join the world?s largest e-mail service with MSN Hotmail. 

> http://www.hotmail.com

> 


  Return to Index