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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Send Email

Send Email

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 4 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.
  • M Offline
    M Offline
    Mogha Ritesh
    wrote on last edited by
    #1

    I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh

    A S T 3 Replies Last reply
    0
    • M Mogha Ritesh

      I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh

      A Offline
      A Offline
      Aavesh Agarwal
      wrote on last edited by
      #2

      check this Link http://www.developer.com/net/asp/article.php/3096831[^]

      1 Reply Last reply
      0
      • M Mogha Ritesh

        I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh

        S Offline
        S Offline
        Spunky Coder
        wrote on last edited by
        #3

        dude...explore System.Net.Mail namespace

        Koushik

        M 1 Reply Last reply
        0
        • M Mogha Ritesh

          I want to send an emai from my application to particular email id. how can i do this? Mogha Ritesh

          T Offline
          T Offline
          Thats Aragon
          wrote on last edited by
          #4

          Use this function public bool SendMail(string to,string from,string subject,string cc,string bcc,string attachement,string body) { //Here Attachement is a Path to a file which is going to be attached SmtpMail.SmtpServer=ConfigurationSettings.AppSettings["SmtpServer"].ToString(); MailMessage objmail = new MailMessage(); objmail.BodyFormat = MailFormat.Html; objmail.To = to; objmail.From =from; objmail.Subject = subject; objmail.Body = body; if(cc!="") { objmail.Cc = cc; } if(bcc!="") { objmail.Bcc = bcc; } if(attachement!="") { objmail.Attachments.Add(new MailAttachment(attachement)); } try { SmtpMail.Send(objmail); return true; } catch { return false; } } Keep Smiling :)

          1 Reply Last reply
          0
          • S Spunky Coder

            dude...explore System.Net.Mail namespace

            Koushik

            M Offline
            M Offline
            Mogha Ritesh
            wrote on last edited by
            #5

            I have already imported

            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