File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sample Java Mail program

 
An Sush
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to setup a simple java application to send mail using javax.mail api. Please tell me what all is need? like the mail server, the settings etc
Can Websphere Application Server v6.1 be used as a mail server? If not, tell me some free mail servers.
Thanks,
An
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think all J(2)EE compliant servers include a mail server, but if not, check out Apache James.

The http://faq.javaranch.com/java/JavaEnterpriseEditionFaq points to much useful material regarding JavaMail, including a lengthy tutorial at java.sun.com that has many code examples.
 
Janardan Kelkar
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Suse
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had developed an email client as one of my college projects.We had used that java mail API, and had used the mercury mail server available with XAMPP. It works good enough.
 
Vinoth Thirunavukarasu
Ranch Hand
Posts: 164
Android Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
See this Example. I think this will help you.

Regards,
Vinoth
 
Carey Evans
Ranch Hand
Posts: 225
Debian Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most versions of Windows come with a mail server as part of IIS (not the Windows Home versions), and all Unix versions should have the option to install Exim, Postfix or Sendmail.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic