Try to connect to the server via Telnet to verify you can get to the port outside of your application.
Try opening up a command prompt, typing "telnet", then in telnet, type the following:
open <ip or address of server> 25
This should attempt to open a connection on port 25 (assuming that the server is using a standard SMTP port), if you get a bit of text welcoming you, then the mail server is fine - if on the other hand, you get something like "connection refused", then it's a server problem, rather than a code problem.
Does your SMTP server need authentication? Outlook might connect, but it could be using authentication prior to connecting.
Also, do you have a proxy or firewall in the picture.
This is bcoz of the antivirus which is blocked by the windows firewall,
just add the antivirus to the windows firewall ,in windows firewall Exception tab -->AddProgram and select the antivirus which is installed in your system .. this will solve the prob for ASP.net application ..
The problem is our virus scanner doing the blocking.
We run McAfee version 8 and so our infrastructure people are looking at the problem now to create a rule to allow Smtp traffic out of developer boxes.
The solution to it is Open McAfee Virusscan console. Double click Access Protection, Select the first rule corresponding to port 25 (default smtp port). Double click on it, in the excluded processes list you would see that inetinfo.exe is present. This was for iis5.0 and iis5.1, the asp.net 2.0 worker process runs as w3wp.exe. Thus add w3wp.exe to the process list and you should be able to get it running.
If you're running VS.NET 2005 and your web application is using the ASP.NET Development Server (instead of IIS), the process name to add to the excluded processes list is: WebDev.WebServer.exe.
Thanks for the advice so far, it allowed me to track my similar problem. I checked the McAfee log and found that it was my aspnet_wp.exe process that was being blocked (VS2005). I added that to the list and all works
REF:
http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic4464.aspx
http://forums.asp.net/t/1209181.aspx
http://www.isaserver.org/articles/smtprelayinboundoutbound.html
http://www.zoneedit.com/smtp.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。