Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. send email in asp.net

send email in asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netcomworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nematjon Rahmanov
    wrote on last edited by
    #1

    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.

    P S 2 Replies Last reply
    0
    • N Nematjon Rahmanov

      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.

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      where is the exchange server??????

      Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

      1 Reply Last reply
      0
      • N Nematjon Rahmanov

        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.

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups