### Add parts (each "attach" has same arguments as "new"): $msg->attach( Type =>'TEXT', Data =>"Here's the GIF file you wanted" ); $msg->attach( Type =>'image/gif', Path =>'/usr/local/tmp/aaa000123.gif', Filename =>'logo.gif' );
$text = $msg->as_string;
## MIME::Lite also includes a method for sending these ## things.
The "Path" attribute is the full path to the file you are sending.
The "Filename" attribute is the filename that will be displayed to the person who receives the email.