Solved

send form to email, and at the same time direct the page to certain web page

Posted on 2006-06-13
7
215 Views
Last Modified: 2010-04-01
Hi:

Currently I am designing a web form. I need to send all the information in the form to some email address, and at the same time forward the page to some confirmation web page which shows the summary of form information.

I know I can set the form action like <form name="myform" action = "mailto:abc@abc.com">
but how can I set the forward page in the form?

Thanks
0
Comment
Question by:ly_uwo
  • 4
  • 3
7 Comments
 

Author Comment

by:ly_uwo
ID: 16897646
help
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 16899153
Hi,

I do not think that
<form name="myform" action = "mailto:abc@abc.com">
would be a good idea.

Use Servlet to send the email as well as to forward the page.

David
0
 

Author Comment

by:ly_uwo
ID: 16899426
thank you. so how can I Use Servlet to send the email as well as to forward the page? do I need to use Java Mail?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 16

Accepted Solution

by:
suprapto45 earned 260 total points
ID: 16899496
Yes,

You need to use JavaMail.

>>"how can I Use Servlet to send the email as well as to forward the page?"
Are you familiar on how the Servlet works? If so, for forwarding the page, you can use RequestDispatcher or simply redirect method. Of course, before forwarding, you need to send email first.

Please let me know if you are unsure.

David
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 16899511
I believe that in the JavaMail itself, they have the sample on how to send email from Servlet. That would be your best solution for your problem.

David
0
 

Author Comment

by:ly_uwo
ID: 16903190
good, I am doing with java mail now.
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 16903942
Glad I could help.

Let us know if you need more info ;)

David
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Read about why it is more lucrative for an IT company to participate in government projects.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

820 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