LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Java Mail fails to send a HTML mail (http://www.linuxquestions.org/questions/programming-9/java-mail-fails-to-send-a-html-mail-253265/)

eantoranz 11-10-2004 11:42 AM

Java Mail fails to send a HTML mail
 
Hi!

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

<html>
<head>
        <title>Newletter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*" cols="*" framespacing="0" frameborder="NO" border="0">
  <frame src="http://www.agivenpage.com" name="topFrame" scrolling="NO" noresize>
  </frameset>
<noframes><body>
</body></noframes>
</html>

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 11:58 AM.