|
GUIDE - Form Mailer How do I set up a form to send its output through e-mail? There are three scripts in the system CGI directory which can accomplish this. The simplest and least functional script is form.cgi; the more advanced script is formmail.pl, and the most flexible is cgiemail. Details on each are available in the System CGI area of the Forum. To use form.cgi, your form should look like this: <FORM METHOD="POST" ACTION="/cgi-sys/form.cgi"> <INPUT TYPE="hidden" NAME="TO" VALUE="username"> <INPUT TYPE="hidden" NAME="OK" VALUE="new-URL"> <INPUT TYPE="hidden" NAME="KW" VALUE="Subject"> ...other form fields go here... <INPUT TYPE="submit" VALUE="Submit"> <INPUT TYPE="reset" VALUE="Reset"> </FORM> To use formmail.pl, your form should look like this: <FORM METHOD="POST" ACTION="/cgi-sys/formmail.pl"> <INPUT TYPE="hidden" NAME="recipient" VALUE="e-mail address"> ...other form fields go here... <INPUT TYPE="submit" VALUE="Submit"> <INPUT TYPE="reset" VALUE="Reset"> </FORM> Note: formmail.pl has many other options, as documented on its own page. To use cgiemail, your form should look like this: <FORM METHOD="POST" ACTION="/cgi-sys/cgiemail/template.txt"> ...other form fields go here... <INPUT TYPE="submit" VALUE="Submit"> <INPUT TYPE="reset" VALUE="Reset"> </FORM> You must also create a template file, as described in the cgiemail documentation. Note: If you do not have a domain, you must use this opening tag: <FORM METHOD="POST" ACTION="/cgi-sys/cgiemail/username/template.txt"> Per qualunque chiarimento contattateci: info@iperweb.com |