Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes how to send email in the servelet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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: 3892
    
    5
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>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to send email in the servelet?
 
Similar Threads
Servelet
moderators, need help on implementation of online bidding projects on java.
how can i set caharcter encoding in js file
how to send email from servlet program
Java Graphs