File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 172
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: 36478
    
  16
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
 
 
subject: sending email using javamail api
 
Similar Threads
Send Mail problem
Need help in running the mail program in servlets....very urgent !
EMail servlet
Multiple email attachments
request parameter is missing