XF 2.2 logo in email header does not show anymore

snoopy5

Well-known member
Hi,

I have a couple of forums on the same server. All these forums have the exact same settings. I have a jpg file for the forum logo. It displays in the forum header and also in the header in the emails.

Until yesterday all these logos were working fine. They showed properly in the forum header and in the emails. On all forums.

Now I installed another XF installation on that server. Again the same settings. Again XF2.21. But this time, the logo does not appear in the emails. Only in the forum header.

There seems to be no broken link in the emails of that specific forum. Only the name of the forum is visible as text. In ACP I choose "image" as the option. Again: In the forum header it displays correctly.

Just to be sure, I also uploaded in ACP "URL E-Mail-Logo" the jpg file additionally. But still the same result. No logo visible in the emails header.

All other forums display still the correct logo in their emails. It is only that specific forum which does not display the logo in the emails.

What could be the reason for this?
 
I forgot to mention that I used on all forums (including the "trouble" forum) the same codechange in ACP/Appearance/templates/Email/Mail Container the codechange:

Code:
<!DOCTYPE html>
<html lang="{$xf.language.language_code}" dir="{$xf.language.text_direction}">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <base href="{$xf.options.boardUrl}/">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="format-detection" content="telephone=no">
    <title>{$subject}</title>
</head>
<body dir="{$xf.language.text_direction}" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table id="bodyTable" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
    <td align="center" valign="top" id="bodyTableContainer">
        <table border="0" width="600" cellpadding="0" cellspacing="0" class="container" style="table-layout: fixed;" dir="{$xf.language.text_direction}">
        <tr>
            <td class="header" align="center" valign="top">
                <a href="{{ link('canonical:index') }}">
<img src="https://mydomainname.com/community/styles/default/xenforo/NCe_header_100x100.svg" width="100px" height="100px">
            </td>
        </tr>
        <tr>
            <td class="content" align="{{ $xf.isRtl ? 'right' : 'left' }}" valign="top">

{$html|raw}

            </td>
        </tr>
        <tr>
            <td class="footer" align="center" valign="top">
                <div>{{ phrase('visit_board_html', {'board_url': link('canonical:index'), 'board_title': $xf.options.boardTitle}) }}</div>

                <xf:if contentcheck="true">
                    <div class="footerExtra"><xf:contentcheck>{{ phrase('email_footer_html') }}</xf:contentcheck></div>
                </xf:if>
            </td>
        </tr>
        </table>
    </td>
</tr>
</table>

</body>
</html>

<mail:text>
{$text}

-----------------------------

{{ phrase('visit_board_text', {'board_title': $xf.options.boardTitle, 'board_url': link('canonical:index')}) }}

{{ phrase('email_footer_text') }}
</mail:text>


But although this codechange is the same in all my forums, it does not work in that one forum. Really weired...

And yes, I tried it also with jpg images...
 
I reverted now the mail container template and tried the option in:

Appearance/ Styles/ Style properties/ Email logo URL

But this does not work neither. No matter which image or whether I put the URL in the field or upload a jpg file there. The logo does not appear in the emails.

is this a bug?
 
Problem solved.

The mistake was in the ACP/ setup/ Options/ Default email style:

I checked there by mistake "Default Style" instead of "Use default style". I changed that now to "Use default style" and it works properly now.
 
Back
Top Bottom