I am new to Javascript and I have written code to allow me to read e-mail addresses from my hard drive. I want to submit a form containg each email one at a time. When the form is submitted I DO NOT get a response from my auto responder, although I get an acknowledgemnet that the form was submitted successfully. When I log into my accout, there is no indication that any of the submitted forms ever arrived. The code I used is below. Thank you for your help!
_________________________________________
<HTML>
<HEAD>
<TITLE>Bill's-send-mail</Title>
</HEAD>
<BODY LINK="#0000ff">
<script Language="JavaScript">
<!--Hide
// function submits a form
function submitForm(frm){
document.form1.submit(frm);
}
// End Hide -->
</SCRIPT>
<form name="form1" method="post" action="<input type="hidden" name="type" value="1">
<input type="hidden" name="id" value="39241">
<input type="hidden" name="name" value="Bill Corbett" size="40">
<input type="hidden" name="email" value="billMesg">
<input type="hidden" value="Submit" onclick = submitForm(this.form)>
</form>
<script Language="JavaScript">
// Create an instance of the File object.
var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"
;
// Try to open the file.
var myInputTextStream = myFileSysObj.OpenTextFile("c:\\onemail.txt",1,true);
// If there was not an error, then open the file and display it.
while(!myInputTextStream.AtEndOfStream){
var billMesg = myInputTextStream.ReadLine();
submitForm();
}
// Close the input
myInputTextStream.Close()
</SCRIPT>
</BODY>
</HTML>
_________________________________________
<HTML>
<HEAD>
<TITLE>Bill's-send-mail</Title>
</HEAD>
<BODY LINK="#0000ff">
<script Language="JavaScript">
<!--Hide
// function submits a form
function submitForm(frm){
document.form1.submit(frm);
}
// End Hide -->
</SCRIPT>
<form name="form1" method="post" action="<input type="hidden" name="type" value="1">
<input type="hidden" name="id" value="39241">
<input type="hidden" name="name" value="Bill Corbett" size="40">
<input type="hidden" name="email" value="billMesg">
<input type="hidden" value="Submit" onclick = submitForm(this.form)>
</form>
<script Language="JavaScript">
// Create an instance of the File object.
var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"
// Try to open the file.
var myInputTextStream = myFileSysObj.OpenTextFile("c:\\onemail.txt",1,true);
// If there was not an error, then open the file and display it.
while(!myInputTextStream.AtEndOfStream){
var billMesg = myInputTextStream.ReadLine();
submitForm();
}
// Close the input
myInputTextStream.Close()
</SCRIPT>
</BODY>
</HTML>