send email in asp.net
-
Hi . I want send email in my asp.net app. I using this code :
MailMessage objEmail = new MailMessage();
objEmail.To = "nzoneboy@mail.ru";
objEmail.From = "nematjon@doda.uz";
objEmail.Cc = "rnematjon@gmail.com";
objEmail.Subject = "Test Email";
objEmail.Body = "my body" + ", " +
"my comment";
objEmail.Priority = MailPriority.High;try { SmtpMail.Send(objEmail); Response.Write("Your Email has been sent sucessfully - Thank You"); } catch (Exception exc) { Response.Write("Send failure: " + exc.ToString()); }
I get following exception: Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Anybody help me . Thanks.
We are haven't bug,just temporarily undecided problems.
-
Hi . I want send email in my asp.net app. I using this code :
MailMessage objEmail = new MailMessage();
objEmail.To = "nzoneboy@mail.ru";
objEmail.From = "nematjon@doda.uz";
objEmail.Cc = "rnematjon@gmail.com";
objEmail.Subject = "Test Email";
objEmail.Body = "my body" + ", " +
"my comment";
objEmail.Priority = MailPriority.High;try { SmtpMail.Send(objEmail); Response.Write("Your Email has been sent sucessfully - Thank You"); } catch (Exception exc) { Response.Write("Send failure: " + exc.ToString()); }
I get following exception: Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Anybody help me . Thanks.
We are haven't bug,just temporarily undecided problems.
where is the exchange server??????
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
Hi . I want send email in my asp.net app. I using this code :
MailMessage objEmail = new MailMessage();
objEmail.To = "nzoneboy@mail.ru";
objEmail.From = "nematjon@doda.uz";
objEmail.Cc = "rnematjon@gmail.com";
objEmail.Subject = "Test Email";
objEmail.Body = "my body" + ", " +
"my comment";
objEmail.Priority = MailPriority.High;try { SmtpMail.Send(objEmail); Response.Write("Your Email has been sent sucessfully - Thank You"); } catch (Exception exc) { Response.Write("Send failure: " + exc.ToString()); }
I get following exception: Send failure: System.Web.HttpException: The "SendUsing" configuration value is invalid. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Anybody help me . Thanks.
We are haven't bug,just temporarily undecided problems.
Have a look at this for clearer picture of what all you need to do: Sending Emails using .NET Part II[^] You might had set some configuration settings too. In case not, you need to do that too. Described in the article above.