It's not a secret anymore!*
The moose likes Other JSE/JEE APIs and the fly likes JavaMail installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail installation" Watch "JavaMail installation" New topic
Author

JavaMail installation

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
Hi guys,
I posted this message in 'Other Java APIs' forum, but I see that questions do not get answered there very often, so trying here.

I don't think JavaMail is installed by default in J2EE 1.3 -- correct me if I am wrong. If it's not, where do I download it and how do I install it. I went to http://java.sun.com/products/javamail, but all I could find there was JavaMail API.
thanks,
Alex


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60781
    
  65

Sun's site will never win any awards for clarity.
The JavaMail API is what you want to download. Buried in the .zip file you will find mail.jar.
bear
P.S. Unless things have changed, you'll also need to rout out activation.jar from somewhere.
[ January 13, 2004: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
It IS a part of J2EE 1.3, so no need to install it. Oh, and activation.jar is ALSO a part of J2EE 1.3 so no need to install that either.
[ January 13, 2004: Message edited by: Robert Paris ]
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
thanks guys, got it running. However, another problem. I am trying to attach a file with my mail, but get errors:

Error received:

Sending failed; nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.IOException: No content

Does this mean it does not read my file?
The file is in /var/apache/htdocs/tmp/ directory.
thanks,
Alex
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60781
    
  65

OK, at this point we've clearly gone beyond anything remotely to do with JSP (one could argue that the config issue was at least web-app related) so I'm going to remand this back to the Other Java APIs forum. (Alex, I understand your concern about that forum getting less traffic than this one, but we're clearly off-topic at this point).
bear
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
thanks Bear,
May be someone will help here...
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
Aggh....stupid me!
File was not on the server!
Sorry!
 
Consider Paul's rocket mass heater.
 
subject: JavaMail installation
 
Similar Threads
Send Mail
JavaMail and Gmail
I'm trying to make my code send me email - pliz help.
javax & gmail
Sending SMS from Java