我发现了另一个线程(Outlook 2013 背景图像损坏)但是我无法发表评论,因为我是 Stack Overflow 的新用户。这是我的代码:
<table width="695" height="194" border="0" cellpadding="0" style="background-image:url('http://champ.website-admin.net/files/2014/12/email.jpg'); padding:24px;">
<tbody>
<tr>
<td><h3>Emma Woolward</h3></td>
</tr>
<tr>
<td><p><a href="mailto:operations@champresources.com.au">operations@champresources.com.au</a></p></td>
</tr>
<tr>
<td><p>1300 GO CHAMP</p></td>
</tr>
<tr>
<td><p>P: 1300 462 426</p></td>
</tr>
<tr>
<td><a href="www.champresources.com.au"><p>www.champresources.com.au</p></a></td>
</tr>
<tr>
<td><a href="https://www.facebook.com/champresources?fref=ts"><img src="http://champ.website-admin.net/files/2014/12/facebook.png" style="width:100px;height:33px; float: left;"></a><img src="http://champ.website-admin.net/files/2014/12/zeroharm.png" style="float:left; margin-left:5px;"></td>
</tr>
背景图像未出现。对类似线程的回复建议使用多部分电子邮件,他们提供了一个代码示例:
--==boundary-1
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
Content-Base: http://test.endlesspeak.cz
<td background="cid:bg-deepak.jpg">
--==boundary-1
Content-type: image/jpg; name="bg-deepak.jpg"
Content-ID: <bg-deepak.jpg>
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="bg-deepak.gif"
我想知道这个示例代码最好放在哪里?
或者其他人对为什么背景图像在进入前景时消失有任何其他想法?