summaryrefslogtreecommitdiff
path: root/addons/test_mass_mailing/tests
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2020-05-26 06:29:34 +0000
committerThibault Delavallée <tde@odoo.com>2020-08-05 13:55:04 +0000
commited4846dd9df32aa97ba2bf73ac772428d4237f25 (patch)
tree4d7d9974309ba57d6fc898cf7c0b0f7a8cd68650 /addons/test_mass_mailing/tests
parentac0579263bc2996321f55cb20da3332f027dbb36 (diff)
[IMP] mass_mailing: add preview block for mailings
PURPOSE When displaying an email in a list the mail client (gmail, outlook...) computes a preview based on the content. This preview is generally not well computed as it contains a lot of garbage and tags while it should contain only relevant text. SPECIFICATIONS To build this preview, all mail clients read the content of the email. The only way to be able to customize the preview is to add an invisible HTML element at the beginning of the email with the wanted preview text. We add at the end of the preview `&zwnj;` (zero-width non-joiner) to fill the end of the preview in order to not have the beginning of the mail at the end of the preview. It doesn't work with simple space as the mail clients trim each HTML element content. Task ID-2172125 PR #49886
Diffstat (limited to 'addons/test_mass_mailing/tests')
0 files changed, 0 insertions, 0 deletions