aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes How to send a Java mail through servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to send a Java mail through servlet" Watch "How to send a Java mail through servlet" New topic
Author

How to send a Java mail through servlet

Kiran H Iyer
Greenhorn

Joined: Dec 03, 2001
Posts: 11
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

Joined: Feb 14, 2002
Posts: 100
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send a Java mail through servlet