Help for this page

Select Code to Download


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