System.Web.Mail in c# framework 2
- From: tbb@xxxxxx
- Date: 10 Feb 2006 13:36:03 -0800
Hi
i have a problem.
i'm using the following code.
try
{
System.Web.Mail.MailMessage msg = new
System.Web.Mail.MailMessage();
msg.From = "fromaddress";
msg.To = "toaddress";
msg.Body = "body";
msg.Subject = "subject";
System.Web.Mail.SmtpMail.SmtpServer = "serveraddres";
System.Web.Mail.SmtpMail.Send(msg);
}
catch(Exception ex)
{
//do nothing
}
in earlyer versions (framework bevor 2) it works fine, when there the
is no connection to the server nothing happens because of the catch.
in framework 2 there was no exception.
the process accroach 99% of the processor. i can't kill him about the
task manager.
i must restart the system.
can someone acknowledge the fact?
thx tim
.
- Follow-Ups:
- Re: System.Web.Mail in c# framework 2
- From: Ciaran
- Re: System.Web.Mail in c# framework 2
- From: michael . lang
- Re: System.Web.Mail in c# framework 2
- Prev by Date: Re: problems with my web application
- Next by Date: button images
- Previous by thread: Re: problems with my web application
- Next by thread: Re: System.Web.Mail in c# framework 2
- Index(es):