尝试在电子邮件签名中显示公司徽标,而不会在各种电子邮件客户端上默认阻止它。首先,我尝试将图像上传到公司网站,但它返回:
然后我尝试将其实现为base64图像。它适用于Thunderbird ......
但它没有在GMail中显示......
我该怎么办?源代码如下......
<div><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAAwCAYAAAA4n2fvAAAX3ElEQVR4Ae1dB3RVVbr+03tCQksvFAkJEAgCUoVBXVgG26gj84SnowufOjjq6OOhyzfPMjg6snRm3lOnyHtW7GMBHBEpBqQYqiCYhIQQekJNIf1930lucnNz9r7n3puEpZ5/rT/n3F3+vc9/91/3vid+zc3NYoPNAZsDP2wO+P+wH89+OpsDNgfIAVvQ7XVgc+BHwAFb0H8EX7L9iDYHbEG314DNgR8BBwKtPuOZM2dk0aJFUldXZ7VLe7vmJpH6GpGYxHDJuGiyJGSNksDgKKksL5bS/E1yYNsOqasWCQ6T/vEJcu+8ee197TubAzYHfOaAn9Wse1lZmaSkpHg/4NCr58i0eQ9LbPJg8Q8AHWb7/QQC3igHd6yVlc8/IYc3f5GelirFJfu9H8fuaXPA5kAnDlh23f38/CQyMrITAUsFMx97Qm5/+X8ldchgCYMTEQIBD8HQvEZHBsiIS6bJfR99LhPm3hsVGmSJpN3I5oDNAescsOy6Wyfp0vKiW2bL1LsflpozMOJw4V2B+/h1Vcj/B/jJFY8851c66IQ01LwqgWGuLe3PNgdsDnjJAcuu+8GDByUzM1MqKyutDxXVL05+vWK3hMf1l0YLsb1foIQF+58etvK+YVKxv8z6QN3b8oorrpDf/va33TuITd3mQDdyoHst+vCrfia9kvtLzSlrj9DcIDV+0TGbqxNvk83vPmatk8+tkkGB8YLyiGBcXJwUFhZaGQixiDQCqQ1PWOnQA236YYwIoOvzca61wEPAHx7QU4zu309CIiLgSbo+u5fPi/i1ublezp09KzUnT+OKNBPyTUGhuJKdLmAkoc+JNGFJhOArCOsVKWEx0fBeQ/B1+DgnP/+k6MBDYQGCAdxD9wr6wPHTpanB/SycWzTVi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I9+qcM1Ijnqqsj/++GC/au/fhgYmqGpYl1ZaOKioq4goKCgaCpUrHNaWlpOxMSEpCF6XqoqamR7dt5aM4AZrf7AmlF9a6I0Vz7B6bDSJRRaTDZqAJaIJVFH4Q6lWlgYLlHRdSknELeB8jkoydKjG5wBdDzrDJf4JgwNBMWlMrCW+C64HfRYvj8/JBcRr6p+tRJCPpxbPW2qBDmnflqZ1eg9eZJTsbizBtF9olDnioWSWfmryjsnvCinTo9ilr8s8Mj3+4B3RB4FkESGIp/6hRZPzQp9lR7Q/d31gX9n0tl+vNfL5JL771Pqj0IzZiAO15cFPnytUP27NzamJSc4n5WdgubAzYHupQDJupJQZ9p/hVPPSy7li/HL3qgoywqqWAYm/KiHXiZfaO7WFoxsl1sc8DmgI8c8EzQG7CF9tod18mm119CDNJyIk2VCKMiCIV3Wn3qtHzxx8fVXrOPT2B3tzlgc8AtBywLemMDw0FAbdU5bJHdKc/PvES+/uQTOXWyWuoQoxBx3FxqeY92ldWNsmXZZ/LsFdOkbOvWytpGhFGos8HmgM2BHudAS/LBwrDJyckyZ86c1pYU5pqVErh6pfgdHSD9Ro/DL32G4v8/90FCogkvxt8t+zbkSdCWHXJlLlIcEyQ0NFQi8K+qbbA5YHOg5zlgORnX81OzR7Q5YHOgqzhg2XXvqgFtOjYHbA70PAdsQe95ntsj2hzocQ7Ygt7jLLcHtDnQ8xywBb3neW6PaHOgxznw/9Q3rFFWPFVeAAAAAElFTkSuQmCC" alt="" /></div>
<p><span>Griffin Wiebel</span> / Webmaster<br /><a href="https://petrode.com/roundcube/?_task=mail&_action=preview&_uid=9&_mbox=INBOX&_framed=1" target="_blank">303-960-4507</a>/ <a href="mailto:griffinwiebel@petrode.com" target="_blank">griffinwiebel@petrode.com</a></p>
<p><span>PetroDE</span> <span>Office: </span><span>123-456-7890</span> <br /><span>2150 W. 6th Avenue, Suite H Broomfield, CO 80020</span><br /><a href="https://petrode.com/" target="_blank">https://petrode.com/</a></p>
<p> </p>
<p>This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company.</p>
编辑:由于有些人说“不可能”,这是客户发送给我们的签名图片。图片A在Thunderbird中,图片B在GMail中。没有修改。
图片A
图片B
答案 0 :(得分:2)
你可以尝试使用&#34;图像来css&#34;此网站提供的工具:http://www.imgtocss.com/
以下是我使用上述徽标的结果:
<table cellpadding=0 cellspacing=0 height=52 width=250 style="font-size:0px;height:52;width:250">
<tr>
<td>
<table cellpadding=0 cellspacing=0 height=52 width=50 bgcolor="#ffffff" style="font-size:0px;height:52px;width:50px">
<tr height=0>
<td width=1 />
<td width=1 />
<td width=1 />
...
Full code in the fiddle
...
</table>
Campaign监视器有一篇很好的文章和电子邮件客户端中显示的图像细分(https://www.campaignmonitor.com/resources/will-it-work/image-blocking/),以及帮助解决图像显示问题的一个很好的指南。
绕过规则的另一种方法是将较小的页脚图像附加到电子邮件中。似乎(according to this accepted answer)&#34;根据经验,电子邮件客户端默认配置为显示附加图像(例如带有cid:URI方案的图像)...&#34 ;
答案 1 :(得分:0)
简单的答案是电子邮件并不意味着历史上有图像。它本来是原始文本。
Gmail不会仅阻止图片,而是HTML。这是安全的事情。这就是为什么你本质上有一个安全的发件人白名单。
要求您的用户将您添加到列表中,将自动加载图片。