Inline pictures in emails

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
thefrip
Posts: 1
Joined: Fri Aug 16, 2013 12:40 pm

Inline pictures in emails

Post 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.
Post Reply