0
I need to send email from my ASP.NET application. For that I am using the following command from the command prompt to connect to the specific port on tk2smtp
:
telnet tk2smtp.msn.com 22
But it's showing the following error on the command prompt:
Could not open connection to the host
I installed a telnet client in my machine. Let me know if there are any other things to be configured for this.
Not a direct answer to your question, but: why not use some SMTP library? And why not use the SMTP server of your own provider, rather than the MSN server? Like maybe even
telnet localhost 25
on the web server? – Arjan – 2010-06-12T11:22:06.290