Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

E-mail through Java application

 
Angela D'souza
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have Java application running on Windows 2000 advanced server(which has SMTP running). Is there any API which I can use to send e-mail outside intranet? If yes, please send me link or simple example.
Thanks,
Angela
 
Steve Deadsea
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JavaMail:
http://java.sun.com/products/javamail/
The JavaDoc for it is here:
http://java.sun.com/products/javamail/javadocs/
JGuru has a FAQ for it:
http://www.jguru.com/faq/JavaMail
It comes with an examples directory.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic