Posted by Yvan Gagnon on September 20, 1998 at 14:05:06:
I'm trying to customize some source code I got off the IRT
bulletin board so that it can act like an autoresponder that
sends an email newsletter to a person when they type their
email address in a textbox and then click the submit button.
I seem to have it working, however, .. I would still like to
customize it further if possible.
1) Can the code below be customized so that it uses a cgi
script on my server to parse and send the data to the specified
email address instead of using mailto?
2) Is there any way I can customize the variable names in the
input field tags so that I don't get subject=" or "message="
in front of the values, so I have a neater, more newsletter-like
appearance? Or would I have to create a custom cgi script
in order to achieve this?
3) Is there any way I can replace the value of my hidden
"newsletter" field with the contents of an ASCII text file which
resides on my server in the same directory?
(The source code)
<FORM ACTION="" NAME="myform" METHOD="POST" ENCTYPE="text/plain"
onSubmit="document.myform.action = 'mailto:' + document.myform.myemail.value">
Email address: <INPUT TYPE="TEXT" NAME="myemail">
<input type="hidden" name="subject" value="Newsletter Volume IV">
<input type="hidden" name="newsletter" value="Put the newsletter text here. Line breaks are recognized.">