Solved

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

Posted on 2006-06-13
7
211 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
Comment Utility
help
0
 
LVL 16

Expert Comment

by:suprapto45
Comment Utility
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
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 16

Accepted Solution

by:
suprapto45 earned 260 total points
Comment Utility
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
Comment Utility
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
Comment Utility
good, I am doing with java mail now.
0
 
LVL 16

Expert Comment

by:suprapto45
Comment Utility
Glad I could help.

Let us know if you need more info ;)

David
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
web service Rest Client creation 4 73
java cyclic graphs 15 192
maven webservice projet error 6 79
Set up Wildfly 10 8 314
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

8 Experts available now in Live!

Get 1:1 Help Now