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 message

send message

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmin
4 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.
  • R Offline
    R Offline
    Rinki Mukheraji
    wrote on last edited by
    #1

    how send message through network in asp.net.

    P B A 3 Replies Last reply
    0
    • R Rinki Mukheraji

      how send message through network in asp.net.

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Go through Socket Programming. You can refere below URL: http://www.developerfusion.com/article/3918/socket-programming-in-c-part-1/[^]

      Parwej Ahamad g.parwez@gmail.com

      1 Reply Last reply
      0
      • R Rinki Mukheraji

        how send message through network in asp.net.

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        Are you talking about Mailmessages

        Cheers!! Brij

        1 Reply Last reply
        0
        • R Rinki Mukheraji

          how send message through network in asp.net.

          A Offline
          A Offline
          Anil Pandey
          wrote on last edited by
          #4

          hi, here is the way for mail message.. protected void btnSubmit_Click(object sender, EventArgs e) { try { MailAddress SendFrom = new MailAddress(txtFrom.Text); MailAddress SendTo = new MailAddress(txtTo.Text); MailMessage MyMessage = new MailMessage(SendFrom, SendTo); MyMessage.Subject = txtSubject.Text; MyMessage.Body = txtBody.Text; Attachment attachFile = new Attachment(txtAttachmentPath.Text); MyMessage.Attachments.Add(attachFile); SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text); emailClient.Send(MyMessage); litStatus.Text = "Message Sent"; } catch (Exception ex) { litStatus.Text=ex.ToString(); } } Regards Anil :)

          Anil Pandey

          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