Author: IAmMadan | Posted on: 1/12/2009 4:24:35 AM | Views : 238

 Hi... I am trying to send email, using Gmail. But i am getting exception....
 
System.Net.Mail.SmtpException: Failure sending mail. --->
System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: No connection could be made because the
target machine actively refused it at
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress
socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket
s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState
state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) ---
End of inner exception stack trace --- at
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner,
Boolean async, IPAddress& address, Socket& abortSocket, Socket&
abortSocket6, ...

Go to the complete details ...