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. adding a hyperlink in the body of an e-mail message.

adding a hyperlink in the body of an e-mail message.

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-net
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.
  • B Offline
    B Offline
    bcoulter
    wrote on last edited by
    #1

    I am new to asp.net and I am wondering if anyone could show me an example of how to add a hyperlink in an e-mail message. Thanks, Bill

    L 1 Reply Last reply
    0
    • B bcoulter

      I am new to asp.net and I am wondering if anyone could show me an example of how to add a hyperlink in an e-mail message. Thanks, Bill

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage() mailMessage.From = "Test@harminder.com" mailMessage.To = "harminder@pugmarks.com" mailMessage.Subject = "Testing Mail" ' mailMessage.Bcc = "hskhalsa_81@yahoo.com;harminder_81@indiatimes.com" ' mailMessage.Cc = "hari634@yahoo.com" mailMessage.Body = "" & "you have recieved this mail because u r registered with us" & "" & _ "
      " & "your member id is 10000" & _ "
      " & "Your Name is " & _ "
      " & "Your address is " & _ "
      " & "" & "Click hair" & " " mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html 'mailMessage.Attachments.Add(New Mail.MailAttachment("c:\\test.txt")) System.Web.Mail.SmtpMail.SmtpServer = "10.10.10.100" System.Web.Mail.SmtpMail.Send(mailMessage) Response.Write("Done Successfully")
      :eek: harminder_Pugmarks chandigarh India

      A 1 Reply Last reply
      0
      • L Lost User

        Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage() mailMessage.From = "Test@harminder.com" mailMessage.To = "harminder@pugmarks.com" mailMessage.Subject = "Testing Mail" ' mailMessage.Bcc = "hskhalsa_81@yahoo.com;harminder_81@indiatimes.com" ' mailMessage.Cc = "hari634@yahoo.com" mailMessage.Body = "" & "you have recieved this mail because u r registered with us" & "" & _ "
        " & "your member id is 10000" & _ "
        " & "Your Name is " & _ "
        " & "Your address is " & _ "
        " & "" & "Click hair" & " " mailMessage.BodyFormat = System.Web.Mail.MailFormat.Html 'mailMessage.Attachments.Add(New Mail.MailAttachment("c:\\test.txt")) System.Web.Mail.SmtpMail.SmtpServer = "10.10.10.100" System.Web.Mail.SmtpMail.Send(mailMessage) Response.Write("Done Successfully")
        :eek: harminder_Pugmarks chandigarh India

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I do not understand what this code has to do with putting a link in an e-mail message. I do see that it shows how to add an attachment. Bill

        U 1 Reply Last reply
        0
        • A Anonymous

          I do not understand what this code has to do with putting a link in an e-mail message. I do see that it shows how to add an attachment. Bill

          U Offline
          U Offline
          User 949603
          wrote on last edited by
          #4

          with this code u have u gave link to the other websites . i clearly writes in code "click hair " that means when u click the hyperlink the yahoo site open in ur screen. this code working when u send mail throgh this code. if again not understand writes me . bye

          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