Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-10-2004, 12:42 PM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,055
Blog Entries: 1

Rep: Reputation: 90
Question 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 ).

What I'm a doing wrong? Is there another way to achieve what I want?
Old 11-10-2004, 02:47 PM   #2
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,055
Blog Entries: 1

Original Poster
Rep: Reputation: 90
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
call mail program like blat from java to send attachments naijaguy Linux - Software 1 05-04-2008 10:09 PM
Send HTML mail via command line interface xlash Linux - General 2 11-02-2005 02:02 PM
how to configure mail client to send mail out on different pppd threads vkrishn1 Linux - Newbie 0 12-29-2004 11:54 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 07:06 PM
Open web mail OR Send mail groups linuxeagle Linux - Networking 0 05-12-2004 02:54 PM

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration