首页 > 开发 > 综合 > 正文

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

2024-07-21 02:24:38
字体:
来源:转载
供稿:网友

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
原文
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表