Re: Pasting JTable content into the body of an email message



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
>
>


.



Relevant Pages

  • Re: Form results chopped off in EMail
    ... It save the data to an HTML file but not send it in an HTML based email message. ... >>> truncated when I use any format OTHER THAN Formatted ...
    (microsoft.public.frontpage.client)
  • Re: Mail Merge HTML Format Word 2002 XP SP3
    ... of using mailmerge to create the personalised content of the email message, ... The body text format determines the standard used to display the text of the ... Text, Rich Text, and HTML. ... Dim olApp As Outlook.Application ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Double Spacing
    ... When typing a new email message, ... I use Word as the email editor. ... and the latter language requires HTML (otherwise recipients ... Japanese language editor. ...
    (microsoft.public.outlook)
  • [opensuse] Program to autoexecute html page on dvd/cd
    ... Does anyone know of a program that will automatically execute ... html page when a dvd/cd containing the page is inserted into the ODD? ... This email message is intended only for the individual or entity to ... If you are not the intended recipient, ...
    (SuSE)
  • Re: email with html form
    ... Then the email message must be processed to scrape the data ... The email you recieved with a form is a message that uses the HTML format. ... However having a form in your web site ...
    (microsoft.public.scripting.jscript)