Click here to Skip to main content
16,004,974 members
Home / Discussions / C#
   

C#

 
GeneralRe: Real time processing using Threading Pin
Bekjong18-Nov-07 23:41
Bekjong18-Nov-07 23:41 
GeneralRe: Real time processing using Threading Pin
Pankaj - Joshi19-Nov-07 16:34
Pankaj - Joshi19-Nov-07 16:34 
GeneralRe: Real time processing using Threading Pin
Bekjong19-Nov-07 22:21
Bekjong19-Nov-07 22:21 
Questioncall c# class from Java using JNI Pin
G.Makesh18-Nov-07 22:59
G.Makesh18-Nov-07 22:59 
AnswerRe: call c# class from Java using JNI Pin
duncanmhor18-Nov-07 23:04
duncanmhor18-Nov-07 23:04 
GeneralRe: call c# class from Java using JNI Pin
Laubi19-Nov-07 2:36
Laubi19-Nov-07 2:36 
AnswerRe: call c# class from Java using JNI Pin
Zamboch23-Nov-09 10:35
Zamboch23-Nov-09 10:35 
QuestionError-While sending Mail Pin
Satish - Developer18-Nov-07 22:40
Satish - Developer18-Nov-07 22:40 
Hi, I designed a windows applciation by reading mail id's from text file and sending mails. But after sending more than 900 mails i am getting this error.

Exception Occured System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Can any one help reg this error...
I used the code as follows

MailAddress SendFrom = new MailAddress(txtFromAddr.Text);
SmtpClient objSmtpClient = new SmtpClient();
objSmtpClient.Host = "mail.domain.com";
objSmtpClient.Credentials = new System.Net.NetworkCredential("uname", "pwd");
while (!strdata.EndOfStream)
{
_mailId = Convert.ToString(strdata.ReadLine());
if (_mailId != "")
{
MailAddress SendTo = new MailAddress(_mailId);
MailMessage objMailMessage = new MailMessage(SendFrom, SendTo);
objMailMessage.Subject = Convert.ToString(txtSubject.Text);
objMailMessage.Body = Convert.ToString(webBrowser1.DocumentText);
objMailMessage.IsBodyHtml = true;
objSmtpClient.Send(objMailMessage);
}
}

G. Satish
AnswerRe: Error-While sending Mail Pin
duncanmhor18-Nov-07 22:46
duncanmhor18-Nov-07 22:46 
GeneralRe: Error-While sending Mail Pin
Satish - Developer18-Nov-07 22:55
Satish - Developer18-Nov-07 22:55 
GeneralRe: Error-While sending Mail Pin
duncanmhor18-Nov-07 23:01
duncanmhor18-Nov-07 23:01 
GeneralRe: Error-While sending Mail Pin
Satish - Developer18-Nov-07 23:31
Satish - Developer18-Nov-07 23:31 
AnswerRe: Error-While sending Mail Pin
Sun Rays19-Nov-07 0:18
Sun Rays19-Nov-07 0:18 
GeneralRe: Error-While sending Mail Pin
Satish - Developer19-Nov-07 0:27
Satish - Developer19-Nov-07 0:27 
GeneralRe: Error-While sending Mail Pin
Sun Rays19-Nov-07 0:40
Sun Rays19-Nov-07 0:40 
AnswerRe: Error-While sending Mail Pin
Shpendh19-Nov-07 1:50
Shpendh19-Nov-07 1:50 
Questionhelp regarding windows media player Pin
anu8118-Nov-07 22:24
anu8118-Nov-07 22:24 
AnswerRe: help regarding windows media player Pin
sindhutiwari18-Nov-07 22:31
sindhutiwari18-Nov-07 22:31 
GeneralRe: help regarding windows media player Pin
anu8118-Nov-07 22:45
anu8118-Nov-07 22:45 
Questiongraphical grid Pin
sindhutiwari18-Nov-07 22:21
sindhutiwari18-Nov-07 22:21 
AnswerRe: graphical grid Pin
AB777118-Nov-07 22:54
AB777118-Nov-07 22:54 
GeneralRe: graphical grid Pin
sindhutiwari18-Nov-07 22:57
sindhutiwari18-Nov-07 22:57 
GeneralRe: graphical grid Pin
AB777118-Nov-07 23:03
AB777118-Nov-07 23:03 
QuestionUsing .NET 2.0 from VS2003 editor ? Pin
N a v a n e e t h18-Nov-07 21:59
N a v a n e e t h18-Nov-07 21:59 
AnswerRe: Using .NET 2.0 from VS2003 editor ? Pin
pmarfleet18-Nov-07 22:37
pmarfleet18-Nov-07 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.