urgent about java mail

I have the code below that sends html file however it does not send the reference to the images in its relative path. I do not want to use apsolute paths to images on the live site.

Anyone one know a qick way in addition to this code of doing it

InternetAddress to =new InternetAddress("info@ddsds.uk");

MimeMessage message =new MimeMessage(s);

message.setFrom(from);

message.addRecipient(Message.RecipientType.TO, to);

BufferedReader streamIn =new BufferedReader(new FileReader(new File("/marketing/email.html")));

String htmltext;

String body="";

while ((htmltext= streamIn.readLine()) !=null){

body+=htmltext;

}

message.setSubject("Customer Enquiry");

message.setContent(body,"text/html");

Transport.send(message);

[1233 byte] By [Preachinga] at [2007-10-3 2:14:02]
# 1
Ok just a quick and wrong interpretation from my side.. Sorry.. ;)Message was deleted by: casperl
casperla at 2007-7-14 19:12:52 > top of Java-index,Java Essentials,New To Java...
# 2
So include the image as an attachment without path info. What's the problem?
Dick_Adamsa at 2007-7-14 19:12:52 > top of Java-index,Java Essentials,New To Java...
# 3

HTML in an e-mail message doesn't have a base URL for relative URL's to be relative to. So you pretty much have to use absolute URL's for your images. You could try including a <base> element in your HTML header to provide a base URL; it's possible that e-mail clients might use it. Try that and let us know.

DrClapa at 2007-7-14 19:12:52 > top of Java-index,Java Essentials,New To Java...