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. Sending html form to email using asp.net

Sending html form to email using asp.net

Scheduled Pinned Locked Moved Web Development
csharphtmlasp-netalgorithmshelp
6 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.
  • L Offline
    L Offline
    Lodeclaw
    wrote on last edited by
    #1

    Hello! I've been searching around for information on using asp.net to send an email from an html website, containing the contents of a form among other things. So far all I've found is outdated examples and tutorials that I haven't had any luck with. Unfortunately I don't know asp.net, so can anyone point me in the right direction? I'm at a loss. Thanks for any help/advice you can provide!

    L T 2 Replies Last reply
    0
    • L Lodeclaw

      Hello! I've been searching around for information on using asp.net to send an email from an html website, containing the contents of a form among other things. So far all I've found is outdated examples and tutorials that I haven't had any luck with. Unfortunately I don't know asp.net, so can anyone point me in the right direction? I'm at a loss. Thanks for any help/advice you can provide!

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Lodeclaw wrote:

      Unfortunately I don't know asp.net, so can anyone point me in the right direction? I'm at a loss.

      What server side web development platform do you have experience with?

      L 1 Reply Last reply
      0
      • L led mike

        Lodeclaw wrote:

        Unfortunately I don't know asp.net, so can anyone point me in the right direction? I'm at a loss.

        What server side web development platform do you have experience with?

        L Offline
        L Offline
        Lodeclaw
        wrote on last edited by
        #3

        Sadly, none. I've been learning as I go, so it's a process of bumbling through each step until I get the result I'm looking for. So far I've only been working in html, xml, and css in terms of web dev. The client I'm doing this for doesn't seem to be using much of anything server-side, so I'm trying to build this functionality from nothing.

        L 1 Reply Last reply
        0
        • L Lodeclaw

          Hello! I've been searching around for information on using asp.net to send an email from an html website, containing the contents of a form among other things. So far all I've found is outdated examples and tutorials that I haven't had any luck with. Unfortunately I don't know asp.net, so can anyone point me in the right direction? I'm at a loss. Thanks for any help/advice you can provide!

          T Offline
          T Offline
          Todd Smith
          wrote on last edited by
          #4

          You can use a MailAddress object to deal with the from and to email addresses. Then construct a MailMessage object where the body is a string as either plain text or an html document. Once you have those use an SmtpClient object to fire off the email. Set the Host and Port properties on the SmtpClient object and you should be gtg. pseudo code: message = new MailMessage smtp = new SmtpClient smtp.Send(message)

          Todd Smith

          1 Reply Last reply
          0
          • L Lodeclaw

            Sadly, none. I've been learning as I go, so it's a process of bumbling through each step until I get the result I'm looking for. So far I've only been working in html, xml, and css in terms of web dev. The client I'm doing this for doesn't seem to be using much of anything server-side, so I'm trying to build this functionality from nothing.

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            Well you might want to look for some decent ASP.NET tutorials. There could be some introductory articles here on CodeProject as well.

            L 1 Reply Last reply
            0
            • L led mike

              Well you might want to look for some decent ASP.NET tutorials. There could be some introductory articles here on CodeProject as well.

              L Offline
              L Offline
              Lodeclaw
              wrote on last edited by
              #6

              I guess I probably should start at the beginning and get some asp basics under my belt. Haha. Thanks Mike.

              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