<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 26 Jan 2017, at 21:12, Thomas Nyman wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I’m having some difficulties creating a signature with an inline image.<br>
<br>
I understand that I need to use img src=’cid:id’</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">That's true in the sense that this is probably what works best most of the time if the goal is to have the image displayed as often as possible.</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I have generated a base64 code for my image.</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">That would be taken care of by MailMate since this happens for all image attachments. The problem is that MailMate does not provide any way to automatically add an image to all outgoing messages. I'm also not sure many email clients do provide that (but I don't really know). The image should also be added differently than normal attachments (technically, it should used <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">multipart/related</code> instead of <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">multipart/mixed</code>).</p>
<p dir="auto">With regard to <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">base64</code> you are probably thinking of <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">data:</code> URIs, but these don't work well in general. Here's a good <a href="https://www.campaignmonitor.com/blog/email-marketing/2013/02/embedded-images-in-html-email/" style="color:#3983C4">reference</a> on the subject of embedding images in emails.</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I have also made other needs html code. However I can’t figure out how to use the Content-ID to reference the source for the image.<br>
I’m hoping someone could possibly give me a helping hand.</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">I'm afraid there are no good options and the “best” option is not supported by MailMate (<code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">multipart/related</code> mentioned above). Personally, I'm not a fan of embedded images, because it's a somewhat silly waste of space. Images take up much more space than text and they are going to be in every email going forward and back taking up space on both servers and personal computers.</p>
<p dir="auto">Therefore, if you must have an image in your signature then put an image on a server and link to it using <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">https:</code>. Some email clients are going to block it by default, but the other options are not going to work much better. It might also be a benefit that grumpy email client users like me can then still use disk space for something else than signatures :)</p>
<p dir="auto">I hope that wasn't too negative. I don't use HTML signatures, but I implemented them because it was required by quote of lot of employers of MailMate users -- it was simply beyond their control. I could possibly also be talked into supporting <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">multipart/related</code> images for signatures, but it would have to be for a similar reason.</p>
<p dir="auto">-- <br>
Benny</p>
</div>
</div>
</body>
</html>