Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes how to send email in the servelet? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "how to send email in the servelet?" Watch "how to send email in the servelet?" New topic
Author

how to send email in the servelet?

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
Hi,
I plan to construct a web site to do online bidding. After the bidding is over, the winner could be sent email about it. since the server side is servelet, how can I in servlet send email to the customer?
Thanx!
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Use the JavaMail API inside your servlet. It's just more Java code, after all...
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
you can also use this
sun.net.smtp.SmtpClient
and send mails frm yr servlet..
good luck
malhar


Malhar Barai
SOA & Java Book
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
try this course at the jcd, its usually my first port of call for tutorials - they usually only cover the basics but it should get you started.
http://developer.java.sun.com/developer/onlineTraining/JavaMail/
chanoch
------------------
Chanoch Wiggers
Architect for Professional Java Mobile Programming


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to send email in the servelet?
 
Similar Threads
how can i set caharcter encoding in js file
Servelet
how to send email from servlet program
moderators, need help on implementation of online bidding projects on java.
Java Graphs