Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Email header logo (header.jpg) not displaying

Email header logo (header.jpg) not displaying

Locked

Views: 4,890

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Aug 2010, 6:20 PM
#1
1100101 avatar

1100101

New Zenner

Join Date:
Sep 2008
Posts:
19
Plugin Contributions:
1

Email header logo (header.jpg) not displaying

Hello.

When I send html e-mail from my shop the header logo is not displaying at all. Neither the original zencart image or my current logo is displayed. Instead I simply see the alt text "logo".

I checked the source code of the html e-mail and I see:

<img alt="logo" src="http://email/header.jpg">

I have uploaded the e-mail header.jpg logo and it accessible in my browser here:
http://www.lovencake.co.uk/email/header.jpg

My e-mail settings in the admin are:
E-Mail Transport Method = smtpauth
Use MIME HTML When Sending Emails = true
Email Admin Format? = HTML

I am using the default e-mail template files (apart from header.jpg which is my shop logo).

I have tried closing my e-mail client and clearing my cache.

I am not sure what to do. Am I forgetting something?

Any help much appreciated. Thank you,
sj

29 Aug 2010, 8:28 PM
#3
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Email header logo (header.jpg) not displaying

This

<img alt="logo" src="http://email/header.jpg">Should be

<img alt="logo" src="email/header.jpg" />Or as in the post referenced above

<img src="http://yourstore.com/email/header.jpg" alt="logo" />**edit cos I just saw the snippet that says you saw that code in the source view...all the default email templates also have this at the top:

<base href="$BASE_HREF" />so it sounds like your email template is not reading your site's base url for some reason....try the 3rd I code posted and that should work :)
30 Aug 2010, 9:46 AM
#4
1100101 avatar

1100101

New Zenner

Join Date:
Sep 2008
Posts:
19
Plugin Contributions:
1

Re: Email header logo (header.jpg) not displaying

Thank you both, it works! :clap:

DamienDLSkinSolution: Thank you! I thought that something severe could be wrong with my site. I now guess this is not the case and I am using the solution you suggested. The absolute links seem to work fine in all of the e-mail clients I have tested. :oops:

LissaE: I'd tried to figure out how Zen Cart built the e-mails from the templates, but, I'd looked over the line:

<base href="$BASE_HREF" />  

I edited the functions_email.php file to print out:

$block['BASE_HREF']

It was correctly printing the location of my catalog. I then checked the e-mail in the admin by printing out:

$file_holder

At the bottom of the function zen_build_html_email_from_template(). The source is being correctly generated.

Thank you for pointing out the <base> tag to me. I was previously confused by how Zen Cart built the e-mails.

I now guess the problem is with some e-mail clients, possibly just webmail clients (I was using hotmail) and not Zen Cart or my website. I think that having a second <head> defined in the e-mail itself might cause the base header to be incorrectly set by hotmail. I found this old post: http://www.vbulletin.com/forum/showthread.php?163707-base-href-tag-and-Hotmail

Has anybody been able to see their logo in html e-mails to hotmail without the absolute link modification suggested by DamienDLSkinSolution and LJ Global? :unsure:

Thank you both again!

-- EDIT --
Just to clarify LissaE...

In email/email_template_direct_email.html etc... the source reads:

<head>
<base href="$BASE_HREF" />  
</head>
<body>
<img alt="logo" src="email/header.jpg" />  
</body>

However, when I view the source using firebug in hotmail (after receiving the e-mail) the source is magically:

<img alt="logo" src="http://email/header.jpg" />  

I am guessing this is Microsoft's doing.
-- EDIT --