Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

How To Send Email With Perl, Part II

By Will Bontrager
2004-06-09


Overview

First, the script checks whether or not an email address was specified as part of the script's URL, in the manner presented in Part I. If yes, the script stores the email address where it can be referred to and used a bit later.

Then, in this order, the program:

1. Checks for and stores the values of any form fields
that might have been submitted to it.

2. Checks if any required form fields have been left
blank and whether or not the submitted address is
a valid email address, and displays error messages
as appropriate.

3. Sends the email, either plain text or HTML.

4. Displays the thankyou page in the user's browser.

Now, some details about each of the above four steps.

Tutorial Pages:
» How To Send Email With Perl, Part II
» Overview
» 1. Form Field Values
» 2. Checking For Required Fields
» 3. Sending the Email
» 4. The ThankYou Page
» An Example Auto-responder's Web Page Form
» Still To Come


Copyright 2004 Bontrager Connection, LLC


 | Bookmark
Related Tutorials:
» Random subroutines in Perl
» Log Script Use
» Creating Perl Modules for Web Sites
» Bit Vector, Using Perl Vec
» Build a Perl/CGI Voting System
» Perl Range Operator