[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

how to send email notification in jsp page?

Posted on 2007-11-24
2
Medium Priority
?
2,862 Views
Last Modified: 2013-11-24
Hi,
I have jsp page that contain a form, What i want is :
when user click the submit button: an email notification will be send to (any email)
what is the statment code to do the(send  a notification email ) in jsp ??
thanx
0
Comment
Question by:master_programmer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
gnoon earned 2000 total points
ID: 20342751
You need to download a java mail library and place it in your classpath. A good one from sun at http://java.sun.com/products/javamail/ and here how to write code to deal with it http://www.vipan.com/htdocs/javamail.html

You can get those receiver e-mail addresses or mail subject from request's parameters.
0
 
LVL 16

Expert Comment

by:gnoon
ID: 20342776
You also need a SMTP server (a computer having a program to send mail installed). If you do not have one, Windows comes with this program in the CD. Here how to install it http://msdn2.microsoft.com/en-US/library/8b83ac7t.aspx. But you may be not able to send mail to internet mail such as hotmail, just in local network (enough for test send mail).
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question