• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Email attachment

 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how i can send a file as an email attachment?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean using Java?
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Is it possible?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you already know how to send a plain text email message with some Java application?
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do kind of know how to do it, but not really. I've been using my predecessor's email class but i would like to write my own because i'd like to be able to send attachments.
Any help u can give me would be appreciated
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the JavaMail API. Here is a link to a really good tutorial. It also shows how to send attatchments.
http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic