i found a method in web to send asp.net mails<br />
<br />
public void SendSMTPEMail<br />
(string strSmtpServer, <br />
string strFrom, <br />
string strFromPass, <br />
string strto, <br />
string strSubject, <br />
string strBody)<br />
...<br />
<br />
it is ok on 127.0.0.1 smtp server. but when i published my pages to host space, there is an error sending mail<br />
<br />
System.Net.Mail.SmtpException<br />
Failure sending mail<br />
An existing connection was forcibly closed<br />
by the remote host at<br />
System.Net.Sockets.Socket.Receive<br />
<br />
is there any botherless method to send mail using asp.net. thanks for some code.<br />
<br />
public void SendSMTPEMail<br />
(string strSmtpServer, <br />
string strFrom, <br />
string strFromPass, <br />
string strto, <br />
string strSubject, <br />
string strBody)<br />
...<br />
<br />
it is ok on 127.0.0.1 smtp server. but when i published my pages to host space, there is an error sending mail<br />
<br />
System.Net.Mail.SmtpException<br />
Failure sending mail<br />
An existing connection was forcibly closed<br />
by the remote host at<br />
System.Net.Sockets.Socket.Receive<br />
<br />
is there any botherless method to send mail using asp.net. thanks for some code.<br />