wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes HTML Table Border showing up thick , when viewed on lotus notes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML Table Border showing up thick , when viewed on lotus notes" Watch "HTML Table Border showing up thick , when viewed on lotus notes" New topic
Author

HTML Table Border showing up thick , when viewed on lotus notes

Mahesh Trikannad
Ranch Hand

Joined: Dec 14, 2004
Posts: 68
Hi,

I have provided a facility to send mail, including a HTML Table with some data in the body of the mail.

When I view the mail with Lotus Notes, the Border shows up very thick.

My HTML is shown below.
Note the border is 1

<HTML>
<BODY>
<P>Hello</P>
<TABLE border="1">
<TR>
<TH>Agency</TH>
<TH>CommercialId</TH>
<TH>Comml Name</TH>
<TH>Client</TH>
<TH>Product</TH>
<TH>HF Total</TH>
<TH>Due Date</TH>
</TR>
<COLGROUP width="100"/>
<TR>
<TD>agency</TD>
<TD>commercialId</TD>
<TD>commercialName</TD>
<TD>clientName</TD>
<TD>product</TD>
<TD>hfTotal</TD>
<TD>dueDate</TD>
</TR>
</TABLE>
</BODY>
</HTML>


Mahesh Trikannad
Kristin Stromberg
Ranch Hand

Joined: May 17, 2005
Posts: 91
What version of Notes?
Mahesh Trikannad
Ranch Hand

Joined: Dec 14, 2004
Posts: 68
Lotus Notes 6.5
Kristin Stromberg
Ranch Hand

Joined: May 17, 2005
Posts: 91
I would check the user's person doc in the NAB and make sure their mail format preference is not set to "prefers rich text". Also, !notes.net has a good R6 forum.

Let me know if this helps!
Mahesh Trikannad
Ranch Hand

Joined: Dec 14, 2004
Posts: 68
WHen u say NAB, is it the same as checking the user preferences for email.

The user preferences has HTML and text

Mahesh
Kristin Stromberg
Ranch Hand

Joined: May 17, 2005
Posts: 91
No, NAB = the Domino Directory (it used to be called the name and address book or NAB for short). Sorry - I should have been more clear! The Domino Directory is the names.nsf database on the server that contains all the person and group documents. You'll want to look at the person document for the user whose email is not being formatted correctly and make sure that the preferences for incoming mail are set to either "keep in sender's format" or "mime". Basically, anything but "rich text". If it's set to rich text, than the mail router converts the HTML to notes rich text and that can result in weird formatting.
Mahesh Trikannad
Ranch Hand

Joined: Dec 14, 2004
Posts: 68
It is at "Keep in senders' format".
Kristin Stromberg
Ranch Hand

Joined: May 17, 2005
Posts: 91
Okay, perhaps it's time to back up a bit. First, make sure your email really is being sent as MIME, and not as rich text. How are you generating and sending the email? Are you sending it from a notes agent? If so, are you setting the content-type?

Also, try checking the document properties of the email in question (from Notes). What is the type of the Body field? If it's rich text, then (assuming it started out as mime) somewhere your email is being converted from mime to rich text. This could be because there's a server somewhere in your organization that is still using R4 to route mail.

Here's an excellent tech note that has more detail. Also, since I don't think this issue is java related, you might want to post over on notes.net instead of here (although I'm happy to continue helping you if I can).

Good luck!
[ June 17, 2005: Message edited by: Kristin Stromberg ]
Mahesh Trikannad
Ranch Hand

Joined: Dec 14, 2004
Posts: 68
As far as the java mail part is concerned, I send the html in the following way

firstPart.setContent(hfEmail.GetEmailBody(),"text/html");


Regards

Mahesh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HTML Table Border showing up thick , when viewed on lotus notes