Guntram Blohm > Mail-Exchange-0.03.1 > Mail::Exchange::Attachment

Download:
Mail-Exchange-0.03.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.01   Source   Latest Release: Mail-Exchange-0.04

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.

syntax highlighting: