Groups | Blog | Home
all groups > dotnet general > december 2005 >

dotnet general : System.Net.Mail.SmtpClient error



Alejandro Kwiatkowski
12/13/2005 7:27:26 PM
MailMessage message = new MailMessage();

message.From = new MailAddress("ak@eka.com.ar","Alejandro");

message.To.Add("ak@eka.com.ar");

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

Alejandro Kwiatkowski
12/14/2005 9:52:55 AM
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

[quoted text, click to view]

Vadym Stetsyak
12/14/2005 11:16:39 AM
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

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

[quoted text, click to view]

AddThis Social Bookmark Button