This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes How can i e-mail from JSP or Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How can i e-mail from JSP or Servlet" Watch "How can i e-mail from JSP or Servlet" New topic
Author

How can i e-mail from JSP or Servlet

Ghazanfar Qureshi
Greenhorn

Joined: Nov 15, 2000
Posts: 20
I have downlosaded JavaMail and i have Tomcat 3.1 and Microsoft IIS 5 running on same machine but at different ports how can i mail from my JSP which uses Tomcat (I know how to mail from IIS using ASP). I have to download JWS or i can configure Tomcat or IIS ?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
You can write Java code to send mail using JavaMail, which can be used by Servlets runing in Tomcat. Do a search for JavaMail here at the Ranch and you should find several code examples of how to do this.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How can i e-mail from JSP or Servlet