Error in Sending MailHi Everyone,Am creating an application, i want send a mail to user after he is registered.But now i got a error like this.i don't have idea for this error.So please friends if anyone know the meaning of this error.Please intimate me friends.
This is the Error which i got:
Server Error in '/ALUMNI PROCESS' Application.
No connection could be made because the target machine actively refused it 126.96.36.199:25
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 188.8.131.52:25
Line 42: smtpclient.UseDefaultCredentials = false;
Line 43: smtpclient.Credentials = ocredential;
Line 44: smtpclient.Send(message);
Line 45: }
Line 46: }