This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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: 36563
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending email using javamail api
 
Similar Threads
EMail servlet
Send Mail problem
Multiple email attachments
Need help in running the mail program in servlets....very urgent !
request parameter is missing