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. sending images with email

sending images with email

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

    Hi all, I am using FreeTextBox editor.I use ImageGallery to insert images.Then I send the text in an email.My problem is that how can I send the inserted images to the receipient. Please help me.I m sure some1 on codeproject woul be able to solve my prob. Thnx

    C 1 Reply Last reply
    0
    • J joindotnet

      Hi all, I am using FreeTextBox editor.I use ImageGallery to insert images.Then I send the text in an email.My problem is that how can I send the inserted images to the receipient. Please help me.I m sure some1 on codeproject woul be able to solve my prob. Thnx

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The way to embedd images within an email is to attach them and then to send HTML email with img tags that show the images. The other way, is to send HTML mail that shows images which are referenced to externally, except that that those will usually start off blocked. If you just want to send the images, not to show them to the reader, that's far easier. Attach them to the email.

      Christian Graus Driven to the arms of OSX by Vista.

      J 1 Reply Last reply
      0
      • C Christian Graus

        The way to embedd images within an email is to attach them and then to send HTML email with img tags that show the images. The other way, is to send HTML mail that shows images which are referenced to externally, except that that those will usually start off blocked. If you just want to send the images, not to show them to the reader, that's far easier. Attach them to the email.

        Christian Graus Driven to the arms of OSX by Vista.

        J Offline
        J Offline
        joindotnet
        wrote on last edited by
        #3

        following is the code I am using to send image in img tag.But hte image doesn'tt show up at the reader. LinkedResource title = new LinkedResource("va.gif.bmp"); title.ContentId = "Title"; AlternateView view = AlternateView.CreateAlternateViewFromString ( "![]()

        " + strMsg, null, System.Net.Mime.MediaTypeNames.Text.Html ); view.LinkedResources.Add(title); msgObj.AlternateViews.Add(view); //sending email

        C 1 Reply Last reply
        0
        • J joindotnet

          following is the code I am using to send image in img tag.But hte image doesn'tt show up at the reader. LinkedResource title = new LinkedResource("va.gif.bmp"); title.ContentId = "Title"; AlternateView view = AlternateView.CreateAlternateViewFromString ( "![]()

          " + strMsg, null, System.Net.Mime.MediaTypeNames.Text.Html ); view.LinkedResources.Add(title); msgObj.AlternateViews.Add(view); //sending email

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Well, that obviously can't work. You give a filename, why would that work across the web ? That won't even work if the html is not in the same folder as the image. The image needs to be visible on the INTERNET, so you need to make your src something like www.myhost.com/va.gif.bmp. If what you enter doesn't show the image when entered into a browser anywhere in the world, it can't work,

          Christian Graus Driven to the arms of OSX by Vista.

          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