- or download this
### Create a new multipart message:
$msg = MIME::Lite->new(
...
Disposition => 'attachment'
);
- or download this
### Format as a string:
$str = $msg->as_string;
...
### Print to a filehandle (say, a "sendmail" stream):
$msg->print(\*SENDMAIL);
- or download this
### Send in the "best" way (the default is to use "sendmail"):
$msg->send;