Link to home
Start Free TrialLog in
Avatar of Sideas
Sideas

asked on

Images as attachments on emails in signature file

Hi,

We use Thunderbird to send email and attach the email signature (as below) to thunderbird in the settings, this all work fine, no issue. The issue comes for the receiving party (sometimes) who gets 9 attachments aswell as the signature. The signature looks fine but in various email clients we are looking like we are sending 9 attachments, which we aren't as all images in sig file are stored online.

Any ideas?

<div>
<div>
<p>
<font face="Tahoma" size="2" color="black">
<strong>
Simon Johnson - Digital Media Director
</strong>
<br>
Idealogy Group Ltd, 11 Portland Street, Southampton, UK, SO14 7EB
<br>
Main Office: +44 (0)23 8021 1642 (Ext 230)
<br>
Direct Line: +44 (0)23 8023 1888
<br>
Email:
<a href="mailto:simon.j@idealogyltd.com" style="text-decoration:none;">
simon.j@idealogyltd.com
</a>
<br>
</font>
</p>
</div>
<table width="442" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="76" valign="top" width="221" align="left">
<a href="http://www.idealogyltd.com/">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos1.jpg" alt="Idealogy Logo" height="76" width="221" border="0">
</a>
</td>
<td height="76" valign="top" width="47" align="left">
<a href="http://idealogydebate.blogspot.co.uk/">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos_blogger.jpg" alt="Blogger Logo" height="76" width="47" border="0">
</a>
</td>
<td height="76" valign="top" width="36" align="left">
<a href="https://twitter.com/Idealogy">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos_twitter.jpg" alt="Twitter Logo" height="76" width="36" border="0">
</a>
</td>
<td height="76" valign="top" width="34" align="left">
<a href="http://www.linkedin.com/company/132677">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos_linked.jpg" alt="LinkedIn Logo" height="76" width="34" border="0">
</a>
</td>
<td height="76" valign="top" width="35" align="left">
<a href="https://www.facebook.com/IdealogyLimited">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos_facebook.jpg" alt="Facebook Logo" height="76" width="35" border="0">
</a>
</td>
<td height="76" valign="top" width="34" align="left">
<a href="http://www.youtube.com/user/DemandCreation">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos_youTube.jpg" alt="YouTube Logo" height="76" width="34" border="0">
</a>
</td>
<td height="76" valign="top" width="35" align="left">
<a href="http://www.flickr.com/photos/idealogy/">
<img src="http://www.idealogyltd.com/email-images/emailFooterLogos_flickr.jpg" alt="Flickr Logo" height="76" width="35" border="0">
</a>
</td>
</tr>
</tbody>
</table>
<p style="margin-top:10px; margin-bottom:0; padding-bottom:0; text-align:left; line-height:0">
<a target="_blank" href="http://feeds.feedburner.com/~r/IdealogyUpdate/~6/1">
<img src="http://feeds.feedburner.com/IdealogyUpdate.1.gif" alt="Idealogy news" style="border:0">
</a>
</p>
<p>
<img src="http://www.idealogyltd.com/email-images/emailFooterStrip.jpg" height="10" width="442">
</p>
<p>
<font face="Tahoma" size="2" color="black">
Registered Office: 70 High Street , Fareham, Hants , PO16 7BB
<br>
Registered in England No: 240224. VAT registration No: 522 427 77
<br>
</font>
</p>
</div>

Open in new window

Avatar of Eddie Shipman
Eddie Shipman
Flag of United States of America image

Personally, I'd base64 encode them and put them in using cid's. I dealt with this in Delphi. let me see if I can find the code at home.
Avatar of Sideas
Sideas

ASKER

Ok interesting idea, doesn't that lead to support issues on some email clients?
No, they all support it.
You just need to base64 encode the images and use the img tag to embed them like this:
<img src="data:image/jpg;base64,/*base64-data-string here*/" />

Open in new window


Make sure you change the content-type based on the image type, image/jpg for JPG images image/png for PNGs.

You can add the other attributes; alt, height, width, border, to the tag as well.
Avatar of Sideas

ASKER

You sure, this article says different about support but its 2008, can't find much from later on but 5 years means they must have moved on?
http://www.campaignmonitor.com/blog/post/1761/embedding-images-in-email/
The code I posted was from 2007 or 2008. I am not doing that type of programming anymore. Not sure what to tell you, though other than to test it.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial