I have a webpage with a text box where the user can enter his email id. I want to send mail to the mail Id Entered.
<form action="mailto:[email protected]" method="post" enctype="text/plain" >
FirstName:<input type="text" name="FirstName">
Email:<input type="text" name="Email">
<input type="submit" name="submit" value="Submit">
</form>
The problem is I want mailto:[email protected] to be taken from the text box.Then a message should appear saying that email has been sent successfully. Can I do that using javascript?
id="mail". thendocument.getElementById("mail").value.mailtolink, but there is no way to confirm whether or not the message initiated by themailtowas sent successfully.