Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OT: mailto protocol

807569Jun 19 2006 — edited Jun 19 2006
For sending mail on click of button i am using following code:
<html>
<head><title>Test</title></head>
<body><center>
<h4>Register for future updates</h4></center>
<br><br><br>
<center>
<form method="get" action="mailto:xyz@gmail.com?subject=User%20Active%20"+mailId>
Enter your e-mail id:
<input type="text" name="mailId" size="30"/><br><br>
<input type="submit" value="Register">
</form>
</center>
</body>
</html>
Now when run this code and click on Register button, instead of sending mail, its opening mail client. How can i avoid opening of this mail client and directly the send mail.

I googled and also checked with javascript forums, but couldnt get proper help. I apologize for OT.

Any help is highly appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2006
Added on Jun 19 2006
4 comments
223 views