M
manoj
hi,
we wrote a small email client which is working
sometimes and gives the following exception
System.Web.HttpException when it fails
The following is the code
using System;
using System.Windows.Forms;
using System.Web.Mail;
namespace email
{
class Class1
{
static void Main(string[] args)
{
MailMessage myMail = new
MailMessage();
myMail.From
= "(e-mail address removed)";
myMail.To
= "(e-mail address removed)";
myMail.Subject = "test mesg";
myMail.BodyFormat =
MailFormat.Text;
myMail.Body = "test mesg";
SmtpMail.SmtpServer
= "192.168.36.200";
SmtpMail.Send(myMail);
}
}
}
we wrote a small email client which is working
sometimes and gives the following exception
System.Web.HttpException when it fails
The following is the code
using System;
using System.Windows.Forms;
using System.Web.Mail;
namespace email
{
class Class1
{
static void Main(string[] args)
{
MailMessage myMail = new
MailMessage();
myMail.From
= "(e-mail address removed)";
myMail.To
= "(e-mail address removed)";
myMail.Subject = "test mesg";
myMail.BodyFormat =
MailFormat.Text;
myMail.Body = "test mesg";
SmtpMail.SmtpServer
= "192.168.36.200";
SmtpMail.Send(myMail);
}
}
}