Solved

how to send email notification in jsp page?

Posted on 2007-11-24
2
2,754 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate jars 4 59
String array comparison 4 46
Convert from a json string array to a Java object 3 64
glassfish admin console 1 22
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

733 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