See Mail::Message class for the mail message object handling. Mail::Message class provides fundamental methods. Several message handling modules e.g. Mail::Bounce, Mail::Delivery depend on this class.
A mail consists of one header and one body. A multipart mail body consists of several parts.
The mail delivery module needs not to know the detail of a message. But the filter system needs to know the structure of the message.
These modules depend Mail::Message class to know the message structure. For example, Mail::Bounce, Mail::Delivery et.al. use this class.
The usage is as follows:
my $fh = new FileHandle $file;
my $msg = Mail::Message->parse( { fd => $fh } );
use FML::Mailer;
my $obj = new FML::Mailer;
$obj->send( {
sender => $sender,
recipient => $rcpt,
message => $msg,
});Copyright (C) 1993-2025 Ken'ichi Fukamachi mail:< fukachan at fml.org >