-   Programming (
-   -   Java Mail fails to send a HTML mail (

eantoranz 11-10-2004 11:42 AM

Java Mail fails to send a HTML mail

I'm trying to send a plain a simple HTML to a address. The file is fairly simple. It says:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<frameset rows="*" cols="*" framespacing="0" frameborder="NO" border="0">
  <frame src="" name="topFrame" scrolling="NO" noresize>

As you can see, there's NOTHING in this html code... I create a frame and tell it to show the content of a page in internet (that's exactly what I want).

I create the MimeMessage object and set this as its content (specifying text/html as it's content-type).

When I send it and get it in my mozilla client, nothing shows up. I tried removing the content type... but that made no diference (well... not so, when i did that, I could see the html as the email content :D).

What I'm a doing wrong? Is there another way to achieve what I want?

eantoranz 11-10-2004 01:47 PM

I found out it's not Java the one that's creating the problem, but the HTML file I'm sending... as a matter of fact, It only fails on a mail, because it works just fine If opened with a browser. I'll have to work around it.

All times are GMT -5. The time now is 06:13 AM.