Click here to Skip to main content
16,012,110 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Warning! Newbie On The Loose! Pin
Roger Wright13-Nov-08 15:12
professionalRoger Wright13-Nov-08 15:12 
GeneralRe: Warning! Newbie On The Loose! Pin
led mike17-Nov-08 5:30
led mike17-Nov-08 5:30 
GeneralRe: Warning! Newbie On The Loose! Pin
Roger Wright17-Nov-08 11:49
professionalRoger Wright17-Nov-08 11:49 
GeneralRe: Warning! Newbie On The Loose! Pin
led mike18-Nov-08 5:34
led mike18-Nov-08 5:34 
AnswerProblem Solved - for Now Pin
Roger Wright16-Nov-08 4:52
professionalRoger Wright16-Nov-08 4:52 
GeneralRe: Problem Solved - for Now Pin
S. Senthil Kumar16-Nov-08 6:52
S. Senthil Kumar16-Nov-08 6:52 
GeneralRe: Problem Solved - for Now Pin
Roger Wright16-Nov-08 7:49
professionalRoger Wright16-Nov-08 7:49 
QuestionError while sending email [modified] Pin
Vipul Mehta12-Nov-08 3:31
Vipul Mehta12-Nov-08 3:31 
Hi,

While sending email using the SmtpClient() object I encounter the below error message

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

A small piece of info - My development Virtual Machine is in to other VLAN & the SMTP Server belongs to different.

Find below code written to send email
MailMessage mailMessage = new MailMessage();
mailMessage.From = new MailAddress("some email address...");
mailMessage.To.Add(new MailAddress("some email address..."));
mailMessage.IsBodyHtml = true;
mailMessage.Subject = "Test Mail";

mailMessage.Body = "Test Mail";

// Instantiate a new instance of SmtpClient
SmtpClient mSmtpClient = new SmtpClient();

// Send the mail message
mSmtpClient.Host = "SMTP IP Address";
mSmtpClient.Send(mailMessage);



Is this a network issue? Or do I need to provide the credentials as well?

Regards,
Vipul Mehta

modified on Wednesday, November 12, 2008 10:17 AM

AnswerRe: Error while sending email Pin
Dave Kreskowiak12-Nov-08 3:34
mveDave Kreskowiak12-Nov-08 3:34 
AnswerRe: Error while sending email Pin
Roger Wright13-Nov-08 5:04
professionalRoger Wright13-Nov-08 5:04 
GeneralRe: Error while sending email Pin
Vipul Mehta13-Nov-08 23:41
Vipul Mehta13-Nov-08 23:41 
Question.net newbie - lost in the details.... Pin
charlieg12-Nov-08 2:24
charlieg12-Nov-08 2:24 
AnswerRe: .net newbie - lost in the details.... Pin
Dave Kreskowiak12-Nov-08 3:33
mveDave Kreskowiak12-Nov-08 3:33 
AnswerRe: .net newbie - lost in the details.... Pin
Jon_Boy12-Nov-08 4:20
Jon_Boy12-Nov-08 4:20 
AnswerRe: .net newbie - lost in the details.... Pin
Pete O'Hanlon12-Nov-08 5:13
mvePete O'Hanlon12-Nov-08 5:13 
Question1 computer, 2 nics connected to each other Pin
XenAeon11-Nov-08 10:41
XenAeon11-Nov-08 10:41 
AnswerRe: 1 computer, 2 nics connected to each other Pin
Roger Wright14-Nov-08 4:54
professionalRoger Wright14-Nov-08 4:54 
Question.NET Runtime 2.0 Error Event ID 1000 - Need som help! Pin
Daniel Jansson11-Nov-08 3:44
Daniel Jansson11-Nov-08 3:44 
QuestionFront page extension Problem Pin
ALAQUNAIBI10-Nov-08 21:47
ALAQUNAIBI10-Nov-08 21:47 
AnswerRe: Front page extension Problem Pin
Thomas Stockwell11-Nov-08 2:54
professionalThomas Stockwell11-Nov-08 2:54 
QuestionError while using c# dll as ActiveXComponents Pin
mdubey8210-Nov-08 4:42
mdubey8210-Nov-08 4:42 
AnswerRe: Error while using c# dll as ActiveXComponents Pin
Thomas Stockwell11-Nov-08 2:55
professionalThomas Stockwell11-Nov-08 2:55 
QuestionRegarding Interop.Microsoft.Office.Interop.Word.dll Pin
chinnu bangaram10-Nov-08 3:13
chinnu bangaram10-Nov-08 3:13 
AnswerRe: Regarding Interop.Microsoft.Office.Interop.Word.dll Pin
Dave Kreskowiak10-Nov-08 4:01
mveDave Kreskowiak10-Nov-08 4:01 
GeneralRe: Regarding Interop.Microsoft.Office.Interop.Word.dll Pin
chinnu bangaram10-Nov-08 17:55
chinnu bangaram10-Nov-08 17:55 

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.