Hi,

> >     push(@{$msg->{'parse_queue'}}, [ $part_msg, $boundary, $part_array, 1=
>  ]);
> >     $msg->add_body_part($part_msg);
> This doesn't make sense.  You either want to add the body part to
> the correct part of the tree, or setup the parse queue
> appropriately and let it do it.
            
Would that be a better way to do it? It seems to work too.

            $part_msg->{'type'}="image/tiff";
            $part_msg->{'name'}=$tifffile;
            $part_msg->header("content-type", "image/tiff");
            $part_msg->{'raw'}=$part_array;
            $msg->add_body_part($part_msg);

Best regards,

Olivier

Reply via email to