473,471 Members | 4,629 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

System.Net.Mail.SmtpClient error

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
Dec 13 '05 #1
2 1927
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

"Alejandro Kwiatkowski" <ak@eka.com.ar> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Dec 14 '05 #2
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

"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:u0*************@TK2MSFTNGP11.phx.gbl...
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

"Alejandro Kwiatkowski" <ak@eka.com.ar> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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


Dec 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: HoustonComputerGuy | last post by:
I am working on getting my web applications moved to .Net 2.0 and am having some problems with System.Net.Mail. I get the following error when sending the mail: System.Net.Mail.SmtpException was...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: Alex Maghen | last post by:
I want to use the new System.Net.Mail instead of the old System.Web.Mail. I'm getting an error "Hot not specified" when I try to do my last two lines: System.Net.Mail.SmtpClient SMTP = new...
0
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that...
2
by: Tim | last post by:
I am trying to send a simple mail message using windows forms in VB.NET 2005. When executing the code, I get a general 'Configuration system failed to initialize' error message when the code...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
1
by: les | last post by:
I'm getting this error "BC30456: 'IsBodyHtml' is not a member of 'System.Net.Mail.SmtpClient'" when trying to submit a form and send email. If I remove the line "MailObj.IsBodyHtml = True" the...
2
by: satnamsarai | last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.' Not sure how...
1
by: WIzmanG | last post by:
Hi all I am having trouble with sending email via a C#2.0 application, I use the same settings as I use in Outlook but I cannot get email to send. I am trying to use SSL on port 465 and get the...
5
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.