File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send a Java mail through servlet

 
Kiran H Iyer
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am developing an portal where users can login and play games, in this portal I have an option where I have to mail the users telling there scores.The mail package I am using here is Javamail, now I am testing the javamail via dos prompt and it is working fine, what I need is when I click a button in my html page it should invoke an servlet and through this I have to activate my javamail programme, I am using javawebserver2.0 as my server, this is for my exams.
Kindly help me
thanks in advance
regards
Kiran
 
Rishi Tyagi
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kiran,
For sending mails from java servlets you can use :-
1- sun.net.smtp.SmtpClient
2- by using java mail api
try to use it.
rishi
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic