Mail::Exchange::Attachment - class to handle attachments to messages
use Mail::Exchange::Attachment; my $attachment=Mail::Exchange::Attachment->new("file.dat");
A Mail::Exchange::Attachment object reflects the data that Mail::Exchange::Message uses to add an attachment to a message.
$msg=Mail::Exchange::Attachment->new([$file])
Create a message object, and read $file into it, if given.
$file
$attach->setFile($filename)
setFile reads the file identified by $filename, makes it the content object of the attachment, and sets various other attributes accordingly.
$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<.
$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.
$attach->setString($content)
setString sets the content of the attachment to $string.
$string
To install Mail::Exchange::CRC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Exchange::CRC
CPAN shell
perl -MCPAN -e shell install Mail::Exchange::CRC
For more information on module installation, please visit the detailed CPAN module installation guide.