MailTools(3) User Contributed Perl Documentation MailTools(3)

MailTools - bundle of ancient email modules

# This is a place-holder for the distribution

MailTools is a bundle: an ancient form of combining packages into one distribution. Gladly, it can be distributed as if it is a normal distribution as well.

Be warned: The code you find here is very old. It works for simple emails, but when you start with new code then please use more sofisticated libraries. The main reason that you still find this code on CPAN, is because many books use it as example.

In this distribution, you find

Parse email address from a header line.
Interpret mailcap files: mappings of file-types to applications as used by many command-line email programs.
Simplifies access to (some) email header fields. Used by Mail::Header.
Process Mail::Internet messages.
Collection of Mail::Field objects, representing the header of a Mail::Internet object.
Represents a single email message, with header and body.
Send Mail::Internet emails via direct smtp or local MTA's.
Build a Mail::Internet object, and then send it out using Mail::Mailer.
"Smart functions" you should not depend on.

This module is part of the MailTools distribution,

The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development.

Mail::Cap by Gisle Aas <>. Mail::Field::AddrList by Peter Orbaek <>. Mail::Mailer and Mail::Send by Tim Bunce <>. For other contributors see ChangeLog.

Copyrights 1995-2000 Graham Barr <> and 2001-2017 Mark Overmeer <>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See

2023-07-25 perl v5.38.0