Page 1 of 1

Inline pictures in emails

Posted: Fri Aug 16, 2013 12:51 pm
by thefrip
Hello,

I have made a small change to zmfilter.pl to make sure pictures sent through mail would be considered as in-line attachments and not simple attachments (which sometimes forces to download the attachment before being able to see it depending on the email client in use).

Here is the difference (diff between zmfilter.pl and patched version):

Code: Select all

1012,1015d1011
<               Type => "multipart/related"
<           );
<
<           $mail->attach(
1020,1021d1015
<           my $attachment_count = 1;
<
1028,1029c1022
<                     Encoding => "base64",
<                   Id => "attachment_$attachment_count"
---
>                     Encoding => "base64"
1031d1023
<               $attachment_count++;
Hope this can be useful to some (and maybe integrated in the main trunk).

Rgds,

L.