A mailing web pagem is comprised of the following
- A HTML page that has the email form on it.
- A program that does two things
- It processes the form submitted by the web page
including emailing out the post.
- Returning HTML to the browser to display the results
of that mailing, this can either be a redirect or straight html.
The perl typically looks something like this
$results = &get_form_variables();
$mail_to = &get_mail_to($results);
$email = &make_email_from_form($results);
open(MAIL,'|mail $mail_to');
MAIL << EOF;
close MAIL;
$email;
EOF;
print "MY HTML HERE";
exit 0;
---
Crulx
crulx@iaxs.net