Tools of the Trade
As there are many uses for electronic mail, there are many ways to cut code that creates or receives mail, including the perennial favorite C. More modern (that is, abstracted) means exist, including Perl and Java. The primary advantages of Perl and Java are their cross-platform natures and their powerful networking abilities.
Perl, made popular by its use as a World Wide Web scripting language, is a perfect language for dealing with electronic mail. It has powerful text parsing capabilities that are essential when dealing with the Internet’s text-based mail system. Perl is also readily extensible by writing modules, many of which are freely available from the Comprehensive Perl Archive Network (CPAN). The CPAN includes several Perl modules relating to electronic mail, and they are covered in Chapter 13, Email-Related Perl Modules.
For an introduction to Perl, see Learning Perl, published by O’Reilly Media. For a more complete Perl reference, a copy of Programming Perl (also published by O’Reilly) is highly recommended.
Most of the examples in this book are presented in Perl, although it should be straightforward to port them to other languages.
Perl is well suited to the scripting of mail-related actions, such as test scripts or the movement of mail from one system to another. At least one person is known to be working on a Perl/Tk graphical mail user agent. Example Perl scripts are shown in Chapter 15, Creating and Sending a Multipart Mail Message, and Chapter 16 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access