Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to send email in the servelet?

 
david hu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can also use this
sun.net.smtp.SmtpClient
and send mails frm yr servlet..
good luck
malhar
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic