wood burning stoves 2.0*
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
Author

sending email using javamail api

Jacob Sonia
Ranch Hand

Joined: Jun 28, 2009
Posts: 174
Hi,

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
Rancher

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

Joined: Oct 13, 2005
Posts: 39834
    
  28
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: http://commons.apache.org/email/userguide.html
Where you can find the download link in the left menu bar.


Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending email using javamail api