Helping ordinary people create extraordinary websites!

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:

Copyright 2004 Bontrager Connection, LLC


 1 Votes

You might also want to check these out:


Leave a Comment on "How To Send Email With Perl, Part II "
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS