Help for this page

Select Code to Download


  1. or download this
    use MIME::Lite;
    $msg = new MIME::Lite 
    ...
                   Path     =>'d:/forum.gif',
                   Filename =>'forum.gif';             
    $msg->print;
    
  2. or download this
    use MIME::Base64 qw(encode_base64);
    open(FILE, "d:/forum.gif") or die "$!";
    while (read(FILE, $buf, 1024)) {
    $file.=$buf}
    print encode_base64($file);