• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed MAIL_CONTAINER - Add direction to the container table

rellect

Well-known member
#1
Currently the direction value is in the body tag.
Recently I got a report that there is an issue with RTL emails that shows as LTR.
Found that the email service ignored the body tag and therefore it never got the RTL property.


The necessary change is:
MAIL_CONTAINER
HTML:
<table cellpadding="0" cellspacing="0" border="0" style="
        background-color: #F0F7FC;
        border: 1px solid #A5CAE4;
        border-radius: 5px">
Change to
HTML:
<table cellpadding="0" cellspacing="0" border="0" style="
        direction: {$emailLanguage.text_direction};
        background-color: #F0F7FC;
        border: 1px solid #A5CAE4;
        border-radius: 5px">