Meaningless Drivel is fun!
The moose likes Servlets and the fly likes smtp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "smtp" Watch "smtp" New topic


Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a question about a smtp example code. Do we have to have our own mail server to run a servlet that sends out mail through smtp? What do we need to run a servlet that will take parameters from a html page and send out mails through smtp client?
Mark Simms
Ranch Hand

Joined: Jul 20, 2000
Posts: 36
1) no, but you must have authentication parameters for accessing the SMTP server.....(userid,password).
These can be passed when doing the socket connection open.
2) get the JavaMail api.....also, Jason Hunter is the reknowned expert in this area......check the web search engines for his code.

I agree. Here's the link:
subject: smtp
jQuery in Action, 3rd edition