Helping ordinary people create extraordinary websites!

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:


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