aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Javamail API - Attachments come on top of mail in Lotus Notes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Javamail API - Attachments come on top of mail in Lotus Notes " Watch "Javamail API - Attachments come on top of mail in Lotus Notes " New topic
Author

Javamail API - Attachments come on top of mail in Lotus Notes

Shyam Sunder V R
Greenhorn

Joined: Jul 29, 2008
Posts: 20
Guys,

Long time since I have been here.....I am back here to sort out an issue...I am sure you guys will help.....

I am using javamail API to send a mail that has attachments 'positioned' across the mail ... Just to give you an example....

Mail body :

OPEN ISSues
<openissues.doc>

Closed issues
<closedissues.doc>

Discussion Items
<items.doc>

This works fine in Lotus Notes7.5.....But in lotus notes 8.5 all the attachments line up on the top of the mail and lose their positions.....Please see the same above mail with the issue....

Mail body :

<openissues.doc> <closedissues.doc> <items.doc>

OPEN ISSues


Closed issues


Discussion Items



I want the positions of these attachments retained ...Please help me out in this regard. Thanks !!!


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18113
    
    8

Here's what to do:

(1) Go through your Notes mailbox until you find an e-mail that is displayed the way you want to see it.

(2) Use the JavaMail example program that shows you the structure of a message to see how that e-mail is structured.

(3) Structure your future e-mails in that way.

It's possible that step (1) may fail because you can't find any such e-mails. That might be because your new version of Notes is programmed to always display the attachments in the way you disapprove of (I don't use Notes so this is just a hypothesis). Or it might be that there's a configuration option where you can specify how it displays attachments (although I suspect that's unlikely).
Shyam Sunder V R
Greenhorn

Joined: Jul 29, 2008
Posts: 20
Paul,
Thanks and this does look like a possible way get a clue on what is going wrong with lotus Notes 8.5 since I do have some mails that have attachments positioned properly, THOUGH , THE POINT IS THAT THEY ARE MAILS SENT MANUALLY BY SENDERS AND NOT THE ONES SENT USING ANY PROGRAM...

While I was browsing through the Lotus notes 8.5 release notes , i stumbled upon a patch that read...

" Work was done in Notes 8.5 to put un-referenced HTML attachments on top of the HTML email message "

This might well be the reason for the issue I am facing...Can you guys help me in knowing what UNREFERENCED attachments are and what is the way to make attachments REFERENCED ?Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18113
    
    8

Shyam Sunder V R wrote:THOUGH , THE POINT IS THAT THEY ARE MAILS SENT MANUALLY BY SENDERS AND NOT THE ONES SENT USING ANY PROGRAM...


Of course they used a program. You can't get notes written with pencil and paper into e-mail messages, and if you could there would be a program involved.
Shyam Sunder V R
Greenhorn

Joined: Jul 29, 2008
Posts: 20
very true and I just overlooked that point
Any help with REFERENCED/UNREFERNCED Attachments would be of great help...Any thoughts Paul ?
Shyam Sunder V R
Greenhorn

Joined: Jul 29, 2008
Posts: 20
Also I took a look at Javamail Image attachments which uses a "CID" reference by setting "content-ID" tag to custom value......
Does the same thing need to be done to NON-IMAGE (Doc , xls etc ) file attachments to make them REFERENCED ???
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18113
    
    8

You might be right about that, I don't know. It sounds plausible but that's all I can say. Can't you connect to your Notes server with JavaMail and examine the messages in detail? Or doesn't Notes have an option to show you the headers and so on?
Shyam Sunder V R
Greenhorn

Joined: Jul 29, 2008
Posts: 20
I couldn't try it out on the weekend because I work on a secure network for my Client where I have the Lotus Notes account....
I tried reading the lotus Notes mail yesterday from my Workplace but couldn't do it because it seems to need Domino Jar Files to do it and I am not able to find much info on net for that .....

Can someone adept in Domino let me know how to read a mail from lotus Notes server? Also I am unable to find the host for the lotus sever ..It doesn't seem to be the SMTP server for reading lotus mails..Any help is greatly appreciated....
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18113
    
    8

Sorry, "adept in Domino" is not me. All I know is when I get an e-mail from a Lotus Notes server it looks like it went through an airplane propeller. Little bits of images all over the place. Anyway I wish you luck.

If you remain stuck, is there a possibility of calling IBM for support?
Shyam Sunder V R
Greenhorn

Joined: Jul 29, 2008
Posts: 20
Paul I should thank you for all the assistance and I am not hopeful of calling IBM support...
I will have to just cancel the work I am doing because without proper positioning of attachments the whole project will be of no use.....
Anyways I am waiting for some miracle to happen
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javamail API - Attachments come on top of mail in Lotus Notes
 
Similar Threads
Page breaks using XSL
HTML Format Mail
Problem with java mail
Invoking Lotus Notes by JavaScript code
Sending mails through Lotus Notes