aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Send excel sheet in message body in java mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Send excel sheet in message body in java mail" Watch "Send excel sheet in message body in java mail" New topic
Author

Send excel sheet in message body in java mail

swaruipa shet
Greenhorn

Joined: Dec 06, 2012
Posts: 1

Hi,

I have generated the mail usng JAVA mail , I need to add the excel in the mail body. The excel contain th links and colors for some columns. How to do this using java API / JAVA mail API ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41800
    
  62
You would send the file as an attachment, and then you would need an email client that displays such attachments as it was part of the mail. I'm not aware of such an email client, though.


Ping & DNS - my free Android networking tools app
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19692
    
  20

These days, Outlook has one tab for the email body itself and one for each attachment. If you display such a tab it tries to show the attachment if possible. It definitely has Excel support.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41800
    
  62
Huh, that's interesting. I've just started using Outlook again for the first time in 10 years, but haven't seen any Excel previews so far. I'm guessing there's an option somewhere to turn that off. And it probably depends on Excel being installed.

(But having lived through the days when previewing a mail in Outlook would cause any attached scripts to be executed without user confirmation, I'm hesitant to preview anything in a piece of software coming from Redmond.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Send excel sheet in message body in java mail