Big snag is most email clients will never show the images due to security problems.
I think you have two options. One it to attach the images in the actual email (if they are small) so you would need to learn the joys of multipart messages (are using sending plain text and HTML version?). The other is, as you say, to put the images on a public facing server. Do you have some key that you can use to reference the images from within editing and for the live server? Maybe have a non-ear webapp for serving the images? or serve them out of the database? V. Jenks wrote: > > I've got a question concerning how I might be able to display remote > images in an HTML email. > > In Wicket, I've built a small utility where our designers use a plain html > page to format our email newsletter. The html template page and images > reside outside of the webroot because my app is deployed as an ear file. > They have a maintenance page where they define a newsletter. This page > reads the html file and saves the contents into a field in the Newsletter > table. The newsletter contents which have been saved to the database is > what is sent to customers. > > The problem arises when these newsletters are sent to customers. Since > the images within the newsletter do not reside in the webroot, how would > they be displayed remotely? After editing, when they preview the > newsletter locally I use the ResourceReference method of displaying the > images outside of the webroot. Is there a way I can hard-code a remote > URL to the images before I persist it to the db? > > What it boils down to is; I'm not familiar w/ HTML emails and I'm trying > to figure out how I should proceed so remote images can be displayed once > the email is sent to a customer. > > The answer may be obvious but I'm out of ideas at this point. > > Thanks! > -- View this message in context: http://www.nabble.com/Displaying-images-remotely---HTML-email-tf4535313.html#a12943374 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
