Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sending email using javamail api  RSS feed

 
Jacob Sonia
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This extensive tutorial explains how to send attachments, amongst many other things.
 
Campbell Ritchie
Marshal
Posts: 54909
155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult for "beginning Java". Moving thread.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!