Administrator
- Join Date:
- Feb 2006
- Location:
- Tampa Bay, Florida
- Posts:
- 10,717
- Plugin Contributions:
- 56
[Done 1.3.9] Storage of email_html in email_archive table problematic
The way HTML email are stored is incompatible with retransmission using the zen_mail function, since the $block variable cannot easily be reconstructed. As a suggested workaround, a plain text email could be resent easily if the following change was made to functions_email.php:
If the $module value 'resend" is used, blank out email_html right before the AFTER_EMAIL_FORMAT_DETERMINED notifier i.e.
if ($module == 'resend') {
$email_html=''; // just blank out the html portion if resend from admin
}
//notifier intercept option
$zco_notifier->notify('NOTIFY_EMAIL_AFTER_EMAIL_FORMAT_DETERMINED');
This change would allow the Email Archive Manager to be able to resend at least text based email when the customer's email preference is HTML and the Store has Configuration->Email Options->Use Mime HTML set to true.
Thanks,
Scott