Re: Pasting JTable content into the body of an email message
- From: "Arnaud Berger" <a.berger@xxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 08:27:54 +0200
Hi,
Look at JavaMail examples .
Pasting the content of the JTable would be :
Set the content-type of the body as text/html.
Write yout body as html and copy each line of your JTable as rows in a HTML
table .
The content should look like:
<html>
<body>
<table>
<tr>
<td>field1 of row 1</td>
<td>field2 of row 1</td>
<td>........</td>
</tr>
<tr>
<td>field1 of row 2</td>
<td>field2 of row 2</td>
<td>........</td>
</tr></table>
</body>
</html>
Regards,
Arnaud
"Marc Van Laer" <abstractHR@xxxxxxxxx> a écrit dans le message news:
4lx6e.62316$1I4.4542583@xxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> Is there anybody here who succeeded in getting the content of
> a JTable into the body of an email message?
>
> I've succeeded in launching a new message window from my
> java application adding an emailadress in the "to:"- field.
> I even managed to get a personalized "subject:"-line.
>
> Now i'm trying to get the content of a JTable into the body of
> that email message... Any ideas?
>
> Thanks in advance,
>
> Marc Van Laer
>
>
.
- Follow-Ups:
- Re: Pasting JTable content into the body of an email message
- From: Marc Van Laer
- Re: Pasting JTable content into the body of an email message
- References:
- Pasting JTable content into the body of an email message
- From: Marc Van Laer
- Pasting JTable content into the body of an email message
- Prev by Date: Pasting JTable content into the body of an email message
- Next by Date: Execute more sql statments in one step.
- Previous by thread: Pasting JTable content into the body of an email message
- Next by thread: Re: Pasting JTable content into the body of an email message
- Index(es):
Relevant Pages
|
|