in reply to Embedding images into HTML-emails as attachments

Probably not a good idea but there is also–

printf '<img src="data:%s;base64,%s"/>', $img_mime_type, encode_base64($img_content);

Replies are listed 'Best First'.
Re^2: Embedding images into HTML-emails as attachments
by LanX (Saint) on Mar 04, 2016 at 13:16 UTC
    yeah I had the same idea, but googlemail's webclient is deleting those data entries from the HTML (at least in my tests).

    (didn't mention it in the OP to keep it short and people interested ;)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!