I need to send email from a C# application from localhost. I was successful in sending email using gmail SMPT port and host. But i need send email from local host SMPT virtual server. I followed the steps explained in http://forums.asp.net/t/268037.aspx and http://weblogs.asp.net/steveschofield/archive/2007/08/15/send-email-from-your-local-machine.aspx but the mail was not sending from my application. Also when i execute the command telnet mail.contoso.com 25 in commad promt. It shows "Connecting To mail.contoso.com...Could not open connection to the host, on port
25: Connect failed". Please help me to solve this.