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. General Programming
  3. C#
  4. email generation help required

email generation help required

Scheduled Pinned Locked Moved C#
csharpdatabaseasp-netsql-serversysadmin
2 Posts 2 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.
  • A Offline
    A Offline
    ashkitt
    wrote on last edited by
    #1

    hi im makming an asp.net web appliucation using c# and sql server 2000 at back end. when a user completes a registration form of my application, i want to snd him an email ,confirming that he has been registered and his data has been entered into the database. now can anyone please tell me how to generate email and send it to the email address as entered by the user. thanx! :)

    D 1 Reply Last reply
    0
    • A ashkitt

      hi im makming an asp.net web appliucation using c# and sql server 2000 at back end. when a user completes a registration form of my application, i want to snd him an email ,confirming that he has been registered and his data has been entered into the database. now can anyone please tell me how to generate email and send it to the email address as entered by the user. thanx! :)

      D Offline
      D Offline
      Darryl Borden
      wrote on last edited by
      #2

      Using System.Web.Mail; . . . MailMessage myMessage = new MailMessage(); myMessage.From="validfromaddress@mydomain.com"; myMessage.Subject="You have been registered!"; myMessage.To="validtoaddress@hisdomain.com"; myMessage.Body="You have been successfully registered in our system"; SmtpMail.SmtpServer="ValidSmtpMailServer"; SmtpMail.Send(myMessage); Darryl Borden Principal IT Analyst dborden@eprod.com

      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