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. Email notification

Email notification

Scheduled Pinned Locked Moved ASP.NET
question
4 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.
  • I Offline
    I Offline
    isaii
    wrote on last edited by
    #1

    Hello, I am currently doing online service log where users can post their messages. Just want to ask how I can make an email notification to the user if their message has a new post message? Just like what we have in this forum where link to the site is also included. Thanks in advance.

    S 1 Reply Last reply
    0
    • I isaii

      Hello, I am currently doing online service log where users can post their messages. Just want to ask how I can make an email notification to the user if their message has a new post message? Just like what we have in this forum where link to the site is also included. Thanks in advance.

      S Offline
      S Offline
      sathesh pandian
      wrote on last edited by
      #2

      try this send mail code. Dim client As New SmtpClient(host as string,port as integer) Dim message As New MailMessage(from as string,to as string,subject as string,body as string) client.Send(message)

      Sathesh Pandian

      I 1 Reply Last reply
      0
      • S sathesh pandian

        try this send mail code. Dim client As New SmtpClient(host as string,port as integer) Dim message As New MailMessage(from as string,to as string,subject as string,body as string) client.Send(message)

        Sathesh Pandian

        I Offline
        I Offline
        isaii
        wrote on last edited by
        #3

        Hi.. thanks for your reply. I really appreciate if you could be more specific with the code. Thanks in advance.

        S 1 Reply Last reply
        0
        • I isaii

          Hi.. thanks for your reply. I really appreciate if you could be more specific with the code. Thanks in advance.

          S Offline
          S Offline
          Sam Heller
          wrote on last edited by
          #4

          Dim EmailFrom As New MailAddress("send email address", "Web site name") Dim EmailTo As New MailAddress("users email address", "Users name to send to ") Dim message As New MailMessage(EmailFrom, EmailTo) message.Subject = "Web Site Error" message.IsBodyHtml = True message.Body = "This is a new email for you" Dim Client As New SmtpClient("Your SMTP Server") Client.UseDefaultCredentials = False Client.Credentials = Creds Client.Port = 25 Client.Send(message)

          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