Manipulate Message (Mail Message)

fml 8 tutorial
Prev |  | Next

# Chapter 34. Manipulate Message (Mail Message)

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.

# Mail::Message 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,
        });

Prev | Home | Next
English preferred ML | Up | Mail::Message::Parse Class

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.