This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes sending email using javamail api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "sending email using javamail api" Watch "sending email using javamail api" New topic

sending email using javamail api

Jacob Sonia
Ranch Hand

Joined: Jun 28, 2009
Posts: 179

I have this code to send email, i want to change it to send email as a gzip attachment instead of a text. We are using TransportService and MimeMessage. Please help.
Lester Burnham

Joined: Oct 14, 2008
Posts: 1337
This extensive tutorial explains how to send attachments, amongst many other things.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45289
Too difficult for "beginning Java". Moving thread.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

An alternative to using javamail direct, is to use Commons-Email, which is a framework build on javamail, but with its own methods (a more clean way to send emails)

Here is the User Guide for Commons-Email:
Where you can find the download link in the left menu bar.

Regards, Rene Larsen
Dropbox Invite
subject: sending email using javamail api
It's not a secret anymore!