Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

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

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
ly_uwo
Asked:
ly_uwo
  • 4
  • 3
1 Solution
 
ly_uwoAuthor Commented:
help
0
 
suprapto45Commented:
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
 
ly_uwoAuthor Commented:
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
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!

 
suprapto45Commented:
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
 
suprapto45Commented:
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
 
ly_uwoAuthor Commented:
good, I am doing with java mail now.
0
 
suprapto45Commented:
Glad I could help.

Let us know if you need more info ;)

David
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now