Solved

CDONTS on NT4 Workstation

Posted on 2001-09-10
3
230 Views
Last Modified: 2008-02-01
I have successfully written Code that utilises CDONTS and sends email after collecting information from a form that I developed on Windows 2000.

Some of our clients are using Win NT4 Workstation with IIS as their web server. I know CDONTS is OK on Win NT4 Server.

How do I install CDONTS onto Win NT4 workstation machine running Option Pack & IIS4 (microsoft notes say by installing Outlook 98 but I have only got versions 97 & 2000)?

Thanks
0
Comment
Question by:dphook
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
mgfranz earned 100 total points
Comment Utility
You don't CDONTS requires the SMTP Service that gets loaded with IIS 4, loading the Option Pack on Workstation will not load all the features of NT Server IIS.  One major issue with running IIS on Workstation is the number of concurent connections is limited to 3, (might be 10).

Installing Outlook ~might~ install the SMTP service, but I wouldn't bet a paycheck on it.  Exchange would, but you have to be running Server in order to install Exchange.

Besides, anyone using Workstation as their server is just looking for trouble...

Suggest they upgrade to W2K, both Professional and Server install the SMTP service when IIS is installed.
0
 
LVL 46

Expert Comment

by:fritz_the_blank
Comment Utility
Another option is to install ASPemail by Persits. The syntax is very similar to CDONTS so you won't have to change your code much. The benefit that it has over CDONTS is that it allows you to specify an smtp service that can be on any server while CDONTS under NT 4.0 requires smtp on the local server.

Sample code:

dim objMail
dim strMsg
set objMail = CreateObject("Persits.MailSender")
     objMail.host = "smptp.somewhere.net"
     objMail.From = "Your@Address.com"
     objMail.AddAddress  strcemail    
     objMail.Subject = "Some Subject"
     strMsg =     "Thank you for new application."  & Chr(10) & Chr(10) &_
                    "Please make a note of the following for your records: " & Chr(10) & Chr(10) &_  
                    "Your Username is: " & strusr_nam & Chr(10) &_
                    "Your Password is: " & strpss_wrd & Chr(10)
     objMail.Body = strMsg
     On Error Resume Next
     objMail.Send
     If Err <> 0 Then
           Response.Write "Error encountered: " & Err.Description
     End If          
     Set objMail = Nothing


You can get the software at :
http://www.persits.com/

A simple version without message queing is free. I have used it with Windows NT 4 and Windows 2000, and it has worked perfectly.

Fritz the Blank
0
 
LVL 18

Expert Comment

by:mgfranz
Comment Utility
While that wasn't the question, it is a good bit of information.  

There are dozens of alternative email solutions available, Some free, some not.  I used JMail when I was in your situation dphook, but read my first comment thouroughly before using a component...
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now