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