This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending Attached excel file through java mail

 
Balajipsg Raja
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Sheriff
Pie
Posts: 20774
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 5
 
salvin francis
Bartender
Posts: 1263
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic