System.Net.Mail.SmtpClient error

  • Thread starter Thread starter Alejandro Kwiatkowski
  • Start date Start date
A

Alejandro Kwiatkowski

MailMessage message = new MailMessage();

message.From = new MailAddress("(e-mail address removed)","Alejandro");

message.To.Add("(e-mail address removed)");

message.Subject = "Something";

message.Body = "Something else";

NetworkCredential nc = new NetworkCredential("ekaak", "xxx");


SmtpClient mailClient = new SmtpClient("mail.kwarp.com.ar", 25);

mailClient.Credentials = nc;

try

{

mailClient.Send(message);

}

catch (SmtpException ex)

{

Console.WriteLine(ex.StatusCode); // ->GeneralFailure

}

Any Ideas?

Thanks you
 
Can you specify more details about exception?
Usually SmtpClient in its inner exception contains information such as
HRESULT of underlying layers ( CDO )

There can be great number of reasons why this has happened, only more
details about exception will shed some light
 
One Care Beta is the problem!!

In this thing is necesary to validate the .exe at the firewall on every
build.

Any ideas on how to validate version 1.2.* for example, or the app based in
its location?

Thanks you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top