Fixed MAIL_CONTAINER - Add direction to the container table

refael

Well-known member
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">
 
Top Bottom