Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CDONTS - specify exchange server?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDONTS - specify exchange server?

 Post Reply Post Reply
Author
mmcguire View Drop Down
Newbie
Newbie


Joined: 06 October 2003
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote mmcguire Quote  Post ReplyReply Direct Link To This Post Topic: CDONTS - specify exchange server?
    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.

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Francesco955 View Drop Down
Newbie
Newbie
Avatar

Joined: 09 October 2003
Location: Italy
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Francesco955 Quote  Post ReplyReply Direct Link To This Post 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")
=2 'Per usare il server interno mi pare che si deve scrivere 1

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

cdoconfig.fields("http://schemas.microsoft.com/cdo/configuration/smtpauthent
icate")=1

cdoconfig.fields("http://schemas.microsoft.com/cdo/configuration/sendusernam
e")="NOMEUTENTE"

cdoconfig.fields("http://schemas.microsoft.com/cdo/configuration/sendpasswor
d")="PASSWORD"
  cdoconfig.fields.update

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.