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. Install Mail Server Program (IMail, Mercury Mail etc..) Configure mail program(Imail, Mercury Mail etc.) to route SMTP traffic. 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, 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 Start SMTP in services control panel. (Start, Settings, Control panel, Admin tools, Services Icon) Stop and start Mail Program SMTP service. 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
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More ASP.NET Articles More By aspfree developerWorks - FREE Tools! | Join this Rational Talks to You teleconference, featuring Paul Boustany and Mark Krasovich, to speak to the experts about becoming a Rational ClearCase power user. Get a chance to ask your questions and learn tips and tricks for using Rational ClearCase in Agile development FREE! Go There Now!
| | | | Discover how IBM Rational AppScan Standard Edition can help you detext vulnerabilities in your web applications in the Web Application Security eKit. IBM Rational AppScan is a leading suite of automated web application security solutions that scan and test for common Web application vulnerabilities. The new Web Application Security eKit provides you with valuable resources, including white papers, demos, and additional information on the benefits of testing your Web applications. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial of the latest release of IBM Lotus Sametime Standard V8.0. Lotus Sametime Standard V8.0 is a platform for unified communications and collaboration that combines security features with an extensible, open solution including integrated Voice over IP, geographic location awareness, mobile clients, and a robust Business Partner community offering telephony and video integration. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial of the Rational Host Access Transformation Services (HATS) Toolkit. The HATS toolkit provides a set of plug-ins for the IBM Rational Software Delivery Platform to help you easily extend your legacy applications. HATS makes your 3270 and 5250 applications available as HTML through the most popular Web browsers, while converting your host screens to a Web look and feel and it also enables you to develop new Web, portal, and rich-client applications. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial version of WebSphere Extended Deployment Compute Grid, which lets you schedule, execute, and monitor batch jobs. Because online transaction processing and batch jobs execute simultaneously on the same server resources, you can avoid costly duplication of resources. Compute Grid supports job types of Java transactional batch, compute-intensive and a new type called "native execution", which enables non-Java workloads to run on distributed end points. FREE! Go There Now!
| | | | IBM Enterprise Modernization solutions help organizations evolve core IT systems towards modern architectures and technologies—reducing the burden of maintenance and freeing up resources to develop new business requirements and capabilities. With the IBM Enterprise Modernization Sandbox for System z you can evaluate IBM Enterprise Modernization solutions focused on five key areas: Assets, Architectures, Skills, Processes and Infrastructures, and Investment. Each solution is based upon real customer experiences and offers a proven path to get you started with your modernization projects. FREE! Go There Now!
| | | | This paper is about the critical role that a discipline called integrated requirements management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrating, building or maintaining software. It also looks at ways that automated IBM Rational® products can work together to help you use requirements in the very best way. FREE! Go There Now!
| | | | Get a free trial download of IBM Lotus Forms V3.0 (formerly Workplace Forms), which provides a zero-footprint eForms solution to help you automate and move forms-based business processes off the desktop and onto the Web. With Lotus Forms, you can extend applications beyond the firewall by creating a single electronic form document ready for use in both thick and Web 2.0 thin client format. FREE! Go There Now!
| | | | Get a free trial download of the latest version of IBM Rational Functional Tester V7.0.1. Rational Functional Tester is an automated functional and regression testing solution for QA teams concerned with the quality of their Java, Microsoft Visual Studio .NET, and Web-based applications. FREE! Go There Now!
| | | | The Eclipse community is constantly working to extend Eclipse's functionality. In this webcast, learn about some of the most important and feature-rich projects under development. From multi-language support to plug-in development, tune in to see what Eclipse is capable of now. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |