• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send excel sheet in message body in java mail

 
swaruipa shet
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic