LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 11-10-2004, 11:42 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,956
Blog Entries: 1

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

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 09:09 PM
Send HTML mail via command line interface xlash Linux - General 2 11-02-2005 01:02 PM
how to configure mail client to send mail out on different pppd threads vkrishn1 Linux - Newbie 0 12-29-2004 10: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 06:06 PM
Open web mail OR Send mail groups linuxeagle Linux - Networking 0 05-12-2004 01:54 PM


All times are GMT -5. The time now is 09:05 PM.

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