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
If neither what am I missing?
$sender = new Mail::Sender {...};
$sender->OpenMultipart({..});
$sender->Body({ctype => 'text/plain', msg => $text});
$sender->Part({ctype => 'text/html', disposition => 'attachment',
msg => $contract_html
});
$sender->Attach({
description => 'Infiniplex Logo',
ctype => 'image/gif',
encoding => 'base64',
#Which one of these 'dispositions' would be best if either?
# disposition => "inline;
filename=\"infinlogo.gif\";\r\nContent-ID: <img1>",
# disposition => 'attachment; filename="infinlogo.gif";
type="Gif Image"',
file => 'infinlogo.gif'
});
$sender->Close();
Thanks again as usual!
Dan
>
> From: "Dan Muey" <[EMAIL PROTECTED]>
> > Shoot me if this is already in the docs but is it possible
> to send a
> > variable that contains html as an html attachement without
> it being a
> > file first using Mail::Sender?
>
> :-)
>
> Yes it it possible.
>
> $sender = new Mail::Sender {...};
> $sender->OpenMultipart({..});
> $sender->Body({ctype => 'text/plain', msg => $message_body});
> $sender->Part({ctype => 'text/html', disposition =>
> 'attachment',
> msg => $html
> });
> $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]
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]