From: "Dan Muey" <[EMAIL PROTECTED]>

> So to send an html file attachment (from html in a variable not a
> file) with images :: Which is the best way to send the images? use
> disposition=inline and the cid:img1 img tag or Use
> disposition=attachment and a regular img tag 

Well this can get a bit complex. Most probably you'll have to 
experiment a bit. Maybe even with nested multipart parts (bleargh).

Try one thing first. Add

        multipart => 'Related'

into the OpenMultipart({...}) call and use disposition=>'inline' + 
cids for the images.

If this doesn't work try:

        $sender = new Mail::Sender {...};
        $sender->OpenMultipart({..});
        $sender->Body({ctype => 'text/plain', msg => $text});
        $sender->Part({ctype => 'multipart/related'});
                $sender->Part({ctype => 'text/html', disposition => 'attachment',
                        msg => $contract_html
                });
                $sender->Attach({
                        description => 'Infiniplex Logo',
                        ctype => 'image/gif',
                        encoding => 'base64',
                        disposition => "inline; 
filename=\"infinlogo.gif\";\r\nContent-ID:
<img1>",
                        file => 'infinlogo.gif'
                });
        $sender->EndPart("multipart/related");
        $sender->Close();

Jenda

===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to