File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Email attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Email attachment" Watch "Email attachment" New topic
Author

Email attachment

Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
Can anyone tell me how i can send a file as an email attachment?


Pete<br />"Reality is an illusion <br />brought on by a lack of <br />drink, drugs and smut"
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Do you mean using Java?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
Yes. Is it possible?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Do you already know how to send a plain text email message with some Java application?
Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Email attachment
 
Similar Threads
including html in email
Reading a large file, getting out of memory error.
Java Mail attachment Scanning
Compatibility
email attachment