• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automatic sending of email

 
Ådne Brunborg
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my current project, there is a method for automatic sending of email messages. I need to expand this method to attach a file, and there is no "addAttachment" method on javax.mail.Message or javax.mail.internet.MimeMessage

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mime messages are made up of parts, so you don't add an attachement to the message, rather you create a part that is a file. For example:

[ November 15, 2006: Message edited by: Paul Sturrock ]
 
Ådne Brunborg
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic