wood burning stoves
The moose likes Beginning Java and the fly likes Sending Attached excel file through java mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sending Attached excel file through java mail" Watch "Sending Attached excel file through java mail" New topic

Sending Attached excel file through java mail

Balajipsg Raja

Joined: Nov 10, 2009
Posts: 2
Could you please help me........
I want to send attached Excel file through Java Mail. For Example My Excel file is located in c:\\testing folder .Could you provide coding ......

Thanks in Advance
Paul Clapham

Joined: Oct 14, 2005
Posts: 19728

Actually, JavaRanch is not here for you to ask for code. Read this for example: NotACodeMill.

However you are in luck. When you download JavaMail it comes with a folder of sample programs, including an example of how to send e-mail messages including attachments.
Dipse smith

Joined: Mar 12, 2008
Posts: 5
This page may help you:
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

Attaching an excel file is no different from attaching any other file in java mail

as Paul Clapham rightfully said, check the examples that are in the sample programs

My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
I agree. Here's the link: http://aspose.com/file-tools
subject: Sending Attached excel file through java mail
jQuery in Action, 3rd edition