Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

JavaMail installation

 
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Bear,
May be someone will help here...
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aggh....stupid me!
File was not on the server!
Sorry!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic