views:

198

answers:

3

hi i am making NewsLetter using the wysiwyg Editor.. it allows me to upload the Image Path and Image Path is stored in the Upload Directory.. Not When i retrieve that Image using it works in website.. the editor's value is stored in database example <br> hi

<img src="upload/acb.gif">

<br>

Hello

i am sending Email and the detail of this email is received from database and this detail is sent to visitor

he is gettion all text value but not able to see Image

so suggest me what to do..?

A: 

What are you using to send the email, I have had success in the past using AspEmail: http://www.aspemail.com/

It explains how to send embedded images here: http://www.aspemail.com/manual_04.html

However you will have to get it installed on your server, if you are using Shared hosting this might be a problem, if you are running your own server pretty easy!

bateman_ap
+1  A: 

You would have to add site url to img source

<img src="http://www.sitename.com/upload/acb.gif"&gt; as the user is not accessing your site from his mailbox.

For this you can set "http://www.sitename.com/" as a key in web.config and use in your mails.

This will resolve your problem for sure. Happy coding !!!!!!!!!!!!!

Ravia
+3  A: 

If you are sending emails using CDOSYS.Message, you can easily send a complete web page with embedded images using the Message.CreateMHTMLBody(url) method.

Dim Message
Set Message = CreateObject("CDOSYS.Message")

Message.From = "[email protected]"
Message.To = "[email protected]"
Message.CreateMTHMLBody "http://yourserver.org/email.html"
Message.Send()
thomask