The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Exchange::Attachment - class to handle attachments to messages

SYNOPSIS

    use Mail::Exchange::Attachment;

    my $attachment=Mail::Exchange::Attachment->new("file.dat");

DESCRIPTION

A Mail::Exchange::Attachment object reflects the data that Mail::Exchange::Message uses to add an attachment to a message.

new()

$msg=Mail::Exchange::Attachment->new([$file])

Create a message object, and read $file into it, if given.

setFile()

$attach->setFile($filename)

setFile reads the file identified by $filename, makes it the content object of the attachment, and sets various other attributes accordingly.

setFileInfo($filename)

$attach->setFileInfo($filename)

setFileInfo sets various properties of an attachment (filename, extension, creation/modification time) to correspond to the local file identified by $filename<.

setFileName($filename)

$attach->setFileName($filename)

setFileName sets the various file-related properties of an attachment (filename, extension, ...) to correspond with $filename, without requiring this file to exist.

setString()

$attach->setString($content)

setString sets the content of the attachment to $string.