The Artima Developer Community
Sponsored Link

Java Answers Forum
Email Link to carry the form values to the Specified mail Id

2 replies on 1 page. Most recent reply: Feb 20, 2006 2:10 AM by joe smith

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Pavan Kumar

Posts: 1
Nickname: mpavankp
Registered: Jan, 2006

Email Link to carry the form values to the Specified mail Id Posted: Jan 17, 2006 2:44 AM
Reply to this message Reply
Advertisement
<html>
<body>
<form action="MAILTO:mpavankp@yahoo.com" method="post" enctype="text/plain">
<h3>This form sends an e-mail to Administrator.</h3>
Name:<br>
<input type="text" name="Name : "
value="" size="20"><br>
Mail:<br>
<input type="text" name="Mail : "
value="" size="20">
<br>
Comment:<br>
<input type="text" name="Comment : "
value="" size="40">
<br><br><input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>


this is the code i had written. but it is not carrying the Name, mail Id and Comment to the Msg area of the compose mail box.

how to resolve this problem. plz help me


Dave Hinton

Posts: 42
Nickname: catbells
Registered: Oct, 2003

Re: Email Link to carry the form values to the Specified mail Id Posted: Jan 17, 2006 3:44 AM
Reply to this message Reply
<form action="MAILTO:mpavankp@yahoo.com" method="post" enctype="text/plain">
should probably be
<form action="mailto:mpavankp@yahoo.com">
Certainly I don’t believe you can post to a mailto link.

<input type="text" name="Name : "
value="" size="20">
I have never before seen field names contain spaces or colons. Try
<input type="text" name="name"
value="" size="20">
and similarly for the other fields (e.g. replace "Mail : " with "mail").

joe smith

Posts: 21
Nickname: jetbrains
Registered: Jan, 2006

Re: Email Link to carry the form values to the Specified mail Id Posted: Feb 20, 2006 2:10 AM
Reply to this message Reply
You can download jnetkits from www.wisesoft.biz for a free test

Flat View: This topic has 2 replies on 1 page
Topic: need help on java program! Previous Topic   Next Topic Topic: java newbie hell

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use