Solved

how to send email notification in jsp page?

Posted on 2007-11-24
2
2,649 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
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
gnoon earned 500 total points
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now