Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Posts
    19
    Plugin Contributions
    2

    application error 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:
    HTML Code:
    <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

  2. #2
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

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

    Hey SJ,

    The answer is already in this forum:

    http://www.zen-cart.com/forum/showth...o+header+email

    If you don't want to read all 4 pages, look at the last post (#33), that worked for me.

  3. #3
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default 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 :)
    Last edited by LissaE; 29 Aug 2010 at 09:31 PM.
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  4. #4
    Join Date
    Sep 2008
    Posts
    19
    Plugin Contributions
    2

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

    Thank you both, it works!

    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.

    LissaE: I'd tried to figure out how Zen Cart built the e-mails from the templates, but, I'd looked over the line:
    HTML Code:
    <base href="$BASE_HREF" />
    I edited the functions_email.php file to print out:
    PHP Code:
    $block['BASE_HREF'
    It was correctly printing the location of my catalog. I then checked the e-mail in the admin by printing out:
    PHP Code:
    $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/showt...ag-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?

    Thank you both again!

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

    In email/email_template_direct_email.html etc... the source reads:
    HTML Code:
    <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:
    HTML Code:
    <img alt="logo" src="http://email/header.jpg" />
    I am guessing this is Microsoft's doing.
    -- EDIT --
    Last edited by 1100101; 30 Aug 2010 at 10:50 AM. Reason: Clarification

 

 

Similar Threads

  1. Header/logo not displaying
    By Dukeofmodena in forum General Questions
    Replies: 6
    Last Post: 20 Feb 2011, 11:51 PM
  2. No email logo although header.jpg in folder.
    By chufty bill in forum General Questions
    Replies: 32
    Last Post: 22 Aug 2010, 10:04 PM
  3. Header Logo Image not displaying
    By wudchuk in forum Basic Configuration
    Replies: 4
    Last Post: 9 Oct 2009, 03:05 AM
  4. email logo header.jpg not displaying on IE 8 for hotmail customers
    By itseemedsosimple in forum General Questions
    Replies: 6
    Last Post: 21 Sep 2009, 01:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg