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.

jQuery in Action, 2nd edition
subject: smtp
Similar Threads
Sending email from java. Pls Help!!!
sending message from an webpage to an email addres
to set path of SMTP and POP3
URL Link
problem sending mail to other domains