Magento – Logo image not showing on transactional emails in Magento 1.7.0.2

emailmagento-1.7transactional-mail

The image path is accurate in all cases i.e. image file is present but not showing

I have tried following solution for changing templates:

<img src="{{skin url='images/logo_email.gif' _area='frontend' _package='danone'}}" alt="{{var store.getFrontendName()}}" style="margin-bottom:10px;" border="0"/>

This is the logo image path when viewing it on gmail:

<img src="https://ci5.googleusercontent.com/proxy/lnE8J-8Wm44xakzqQyA74i1dYSiVIiXPJBmNwtm5K-61OImYZeiV9hBlYKkhEBJJvHB8wT15GTbNL5IQ_oLt7cYC7EiKmaR1kj96q1Zby8mWQ5n6mCiuoV5sqJI=s0-d-e1-ft#http://danone.local/skin/frontend/danone/default/images/logo_email.gif" alt="" style="margin-bottom:10px" border="0" class="CToWUd">

On my local host there is no htacess. what might be causing this issue?

Best Answer

The transaction email does not attached the image inline. It is loaded from the server when the email is opened. Based on the example you provided, I'm going to guess you are sending the email to a Gmail account to test. When you do that, Google proxies the image to protect your identity by not having your IP hit the Magento server.

Either move the image to a publicly accessible location or setup a staging server to test the whole site on a public server. Since Google can't hit your local server, that image will never load.

Related Topic