Setup CDONTS on Windows 2000 SMTP with[等級:中、高]

來源:互聯網
上載者:User
smtp|window 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 or download our examples

sample dwonload
原文

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.