File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 46337
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
I agree. Here's the link:
subject: sending email using javamail api
It's not a secret anymore!