Click to See Complete Forum and Search --> : mailto with thans letter


corrado
03-19-2003, 12:34 AM
Please try to find out a solution regarding the following program. When sending a booking form or part of it ( a textare for example ) I receive the thank you letter, but no mail reaches the address written in the Action line. I hope that some of Forum friends may suggest a valid solution. Thank you, Corrado.
This is the code:<HTML>
<HEAD>
<TITLE></TITLE>
<style type="text/css">

</style>
<SCRIPT LANGUAGE="JavaScript">
function submitForm(sub) {
document.forms[sub].submit();
}

function proceedSubmission() {
return confirm("Click OK to mail this information");
}

</SCRIPT>
</HEAD>
<BODY>
<H1></H1>

<FORM METHOD="post" ACTION="mailto:tordonato@interfree.it" ID="modulo"
ENCTYPE="text/plain" onSubmit="return proceedSubmission()">
<TEXTAREA NAME="inputField" COLS="40" ROWS="10"></TEXTAREA><BR>
<A HREF="thanks.htm" onClick="submitForm('modulo')">Mail It!</A>
</FORM>

</FORM>

<!--onSubmit="return proceedSubmission()"-->
</BODY>
</HTML>

requestcode
03-19-2003, 12:41 PM
When you use "mailto" in the action field JavaScript does not normally support the document.formname.submit() method. You will have to use the normal input type of submit button. You should use a Server Side language though to process forms as they are more reliable. Using the "mailto" method requires that the persons Mail Client is set up properly which it usually is not.