Path: CGI : Form mail :
Form Mail
Form Mail CGI Program...
This is a simple web form to email gateway using a C++ CGI program.
The form_mail.exe program checks for errors in the fillout form.
If there were no errors filling out the form then log the data to a CSV file
and redirect to a response page.
The program send an administrator email message
with the form data in the message.
The program sned an email message to the user thanking the user
for filling out the form.
|
URI:
|
/scripts/form_mail.exe
|
SMTP HOST:
|
localhost
|
SMTP PORT:
|
25
|
LOG FILE:
|
form_mail.csv
|
MAIL FROM:
|
webmaster@localhost
|
MAIL TO:
|
webmaster@localhost
|
MAIL SUBJECT:
|
Thank you...
|
MAIL MESSAGE:
|
Thank you for filling out the form...
|
SUCCESS:
|
/form_ok.html
|
ERROR:
|
/form_error.html
|
form_mail.zip - a fill out form email gateway C++ CGI program.
Required fealds will be in a hidden form field call "required" seperated by commas.
The administrator email is in a hidden form field called "admin_email".
The email from address is in a hidden form field called "from_email".
The "log file name" is given in a hidden form field called "log_file".