$msg->attach( Type => $type, Disposition => 'attachment', Path => $filename, Filename => basename($filename), Binmode => 1, );