How to setup CDONTS on a web server for an SMTP server

Contributed by
Rating: 3 stars3 stars3 stars3 stars3 stars / 15
June 26, 2001
Rate this Article:
MEH MEH++


SEARCH ASP FREE
TOOLS YOU CAN USE

advertisement

Setup CDONTS on Windows 2000 SMTP with
two SMTP servers on same web server

This article covers one of the most common questions I see about getting email sent properly from an ASP or ASP.NET page.   How do to setup my pc machine or server to send CDONTS mail.  Step 4 is generally what have to be setup. This article covers having a mail program and SMTP service on the same server.   It already assumes you have a SMTP server running on your network in either case.

We were working on an app that sends email using CDONTS from our development web server.  We also run mail server on the same server that provides POP3, SMTP, IMAP services.  The issue was getting both the mail programs SMTP service and the Windows 2000 SMTP service that is provided as part of IIS.   The problem is one service wouldn't start up due to both were trying to use the default SMTP port 25.  There is a work around I discovered recently that allowed both to operate.  There is one issue with this setup, The Windows 2000 SMTP service won't be able to receive mail. 

For those developers who are at home, using a dial-up or broadband service.  I've found some ISP's that allow you to put their settings in the Internet Svc Manager(PS: I can't guarentee this will work but its worth a shot!, if your ISP comes after you, I claim no responsibility).  If your unsure what is being mentioned, verify the pop3 and smtp settings in your Mail program such as Outlook, Outlook Express or whatever you use and place the same SMTP settings in IIS.

  1. Install Mail Server Program (IMail, Mercury Mail etc..)
  2. Configure mail program(Imail, Mercury Mail etc.) to route SMTP traffic. 
  3. Open Internet Service Manager, Right click on SMTP Default Virtual Server, click advanced on general tab and edit the port to 26.  ONLY EDIT THE PORT IF YOU HAVE TWO SMTP SERVICES RUNNING ON THE SAME SERVER, OTHERWISE LEAVE PORT 25! 0

    'If your just trying to configure the Windows SMTP service provided by IIS , Open Internet Svc manager, right click on SMTP Default Virtual Server and follow step 4,
  4. While in the SMTP properties tab, click the Delivery Tab, select the Advanced fill in the smart host information.  The Fully-Qualified Domain Name textbox needs the computername entered.  My experience this needs to be able to resolve in DNS
  5. Start SMTP in services control panel. (Start, Settings, Control panel, Admin tools, Services Icon)
  6. Stop and start Mail Program SMTP service.
  7. Create an asp page or asp.net page to test out.

    Windows 2000 (Pro, and all Service versions) Verify the SMTP service is installed though!
  • NT 4.0 server with Option Pack 4.0 -- NT 4.0 Workstation is NOT supported

blog comments powered by Disqus
ASP.NET ARTICLES

- Implementing ASP.NET 4.0 Page.MetaDescriptio...
- ASP.Net Development Tips
- Intro to Sessions in ASP.Net
- Google Maps API Introduction in ASP.NET usin...
- Creating an ASP.NET 3.5 Gridview Image Galle...
- Encrypt QueryString in ASP.NET 3.5 using VB....
- ASP.NET 3.5 Drop Down List Controls
- Connect to Access Database with ASP.Net
- Secure Audio Streaming with ASP.Net and Flash
- Dynamic Sitemap and Navigation in ASP.Net
- Implement Gzip and Deflate Compression in AS...
- Run ASP.Net in Ubuntu with Apache
- ASP.Net Mono Website Contact Forms
- ASP.Net URL Rewriting Methods
- Murach`s ASP.NET 4 Web Programming with C# 2...

ASP Web Hosting ASP.Net Web Hosting Windows Web Hosting
 
 
 

ASP Free Forums 
 RSS  Tutorials RSS
 RSS  Forums RSS
 RSS  All Feeds
Site Map 
Request Media Kit
Write For Us Get Paid 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Privacy Policy 
Support 


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 3 - Follow our Sitemap
Most Popular Topics
All ASP.Net Tutorials