Helping ordinary people create extraordinary websites!
GET OUR NEWSLETTER
Your Email:
 

How To Send Email With Perl, Part II

By Will Bontrager
2004-06-09


How To Send Email With Perl, Part II

Part I contained an introduction and a working Perl script for sending email. Part II assumes you understand the basic concepts presented in Part I.

The script accompanying this part of the tutorial can send text or HTML email, form user's choice or your choice. It can be used as an auto-responder and can send personalized emails. (Something to consider before sending HTML email is that some email programs can't display HTML formatted pages.)

The script is too large to be embedded within this article. I'll be referring to it throughout. You can download it at http://willmaster.com/possibilities/demo/mailseries/part2.shtml

Please download the script before continuing. Without the script to refer to, the rest of this article can be confusing.

Unlike the basic script of Part I, this script uses Perl module "strict" to enforce certain variable naming conventions, which is good programming practice, and to be usable on servers that run mod_perl. (mod_perl is an Apache server module that speeds up Perl programs by a considerable amount. Apache software is used by virtually all Unix/Linux servers.)

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

Advertise with Us!


Tutorials Scripts Web Hosting Developer Manuals
Resources