This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 39571
    
  27
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 - updated with new look and Ping home screen widget
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19552
    
  16

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: 39571
    
  27
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
 
Similar Threads
Email
Java Mail
java mail api
Sending mail with attachment using HTMLEMAIL
Spam score API for java mail