• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

send email with authentication

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am looking for an easy way to send emails via smtp and with authentication.
I have used the sun.net.smtp.SmtpClient classes from the J2SE JDK so far, which do not have authentication.
I looked at JavaMail, but my understanding is that this is part of J2EE. I just don't want to install the complete J2EE and only use a little piece of it. Also, when I bundle JavaMail with my application, could I just ship 1-2 jar files out of the J2EE?
or are their any other free java applications available to do that?
Thanks,
Bernd
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use the JavaMail API w/out including all of J2EE. In general I use is "mail.jar" and "activation.jar", the first from JavaMail and the second from JAF. Both can be downloaded from Sun. I've used JavaMail not only to send email (w/ and w/out attachments) but to retrieve mail using IMAP. It works fine.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have configure my application same way using Tomcat without J2EE. Just add "mail.jar" & "activation.jar" classpath or /WEB-INF/lib directory of tomcat.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic