Since MailBeez V2.7 the option "Override Zencart Email Template System" seem not to work anymore: The Email content generated by MailBeez is shown inside the Zencart Email Template.
To make Zen Cart compatible with MailBeez V2.7 please perform following change:
Open
includes/functions/functions_email.php
line 101:
PHP Code:
$email_html = (!is_array($block) && substr($block, 0, 6) == '<html>') ? $block : zen_build_html_email_from_template($module, $block);
change to
PHP Code:
$email_html = (!is_array($block) && stristr($block,'<html') )? $block : zen_build_html_email_from_template($module, $block);
Background:
zencart checks if the mailcontent STARTS with a html-tag. With MailBeez V2.7 the htmlemailboilerplate template is introduced, which improves the visual presentation of the emails in different email clients. This template does not start with a html-tag.
The code change checks if the template CONTAINS a html-tag, which is a much more flexible approach.
Bookmarks