Print Page | Close Window

CDONTS - specify exchange server?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6213
Printed Date: 03 April 2026 at 1:03pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDONTS - specify exchange server?
Posted By: mmcguire
Subject: CDONTS - specify exchange server?
Date Posted: 06 October 2003 at 1:06pm

Hello

Using CDONTS to send information collected from a form to several email recipients.

Is it possible to send the emails using:
- SMTP on another server?
- or exchange on another server?
without needing a major overhaul of the code??

Any help is very much appreciated.

M.




Replies:
Posted By: fernan82
Date Posted: 06 October 2003 at 8:09pm

I know it's possible, I once found an article on MS Knowledge Base about it but I can't find it right now...

So search the KB, it was an article about MS Exchange & CDONTS but it has some sample code to send emails with CDONTS using a remote server.



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Francesco955
Date Posted: 09 October 2003 at 8:17am

Not possible to use an external serveur with Cdonts. It must be used cdosys

CDOSys è PIU' POTENTE di CDONTS, ti permette per esempio di spedire email
non solo con server SMTP interno, ma anche con un server esterno, e
addirittura potendosi autenticare con Username e password.
Nota che CDOSYS è già installato in OGNI Windows 2000 e Windows XP (NT4 non
so)


Esempio:

Set ObjNewMail=Server.CreateObject("CDO.Message")
  Set CDOConfig=objnewmail.configuration

cdoconfig.fields(" http://schemas.microsoft.com/cdo/configuration/sendusing - http://schemas.microsoft.com/cdo/=2 'Per usare il server interno mi pare che si deve scrivere 1

cdoconfig.fields(" http://schemas.microsoft.com/cdo/configuration/smtpserver - http://schemas.microsoft.com/cdo/)="smtp.email.it"

cdoconfig.fields(" http://schemas.microsoft.com/cdo/configuration/smtpauthent - http://schemas.microsoft.com/cdo/
cdoconfig.fields(" http://schemas.microsoft.com/cdo/configuration/sendusernam - http://schemas.microsoft.com/cdo/
cdoconfig.fields(" http://schemas.microsoft.com/cdo/configuration/sendpasswor - http://schemas.microsoft.com/cdo/  cdoconfig.fields.update



Posted By: fernan82
Date Posted: 09 October 2003 at 9:01am

There is a way by running a vbScript on the server... I used it once when I installed SP3 on exchange cuz CDONTS don't work on exchange unless you run a vbScript on the command prompt... I used it once on a local server cuz CDOSYS kept crashing on a mailing list but since you got to enter the mail server name and port # it should work on a remote server... I think they took it off microsoft site but it was there...

There was also a workaround that if you can map the exchange queue folder on the webserver is possible to use CDONTS.



-------------
FeRnAN
http://www.danasoft.com/">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net