1
I get a daily email newsletter, and I noticed that in the Android Gmail app, below the sender and the subject, where usually one sees the first line of the email, there is a brief description that is not visible in the body.
A poem about the shape of loneliness by Patricia Goedicke. View this email in your browser.
When opened the the body begins with
View this email in your browser.
In the web client the line is also not visible, However in the page source it appears in the following HTML:
<span class="m_2244559234681810125mcnPreviewText" style="display:none;font-size:0px;line-height:0px;max-height:0px;max-width:0px;opacity:0;overflow:hidden">A poem about the shape of loneliness by Patricia Goedicke.</span>
When the email is collapsed, it appears again. HTML:
<div class="iA g6" role="gridcell" tabindex="-1">A poem about the shape of loneliness by Patricia Goedicke. View this email in your browser</div>
Looking at the email on other clients (Thuderbird, Edison app for Android), the line does not appear.
My question is: how does this work in terms of SMTP? Is there a way to instruct part of an email not to be displayed, or to appear selectively?
Thanks. that CSS is all from the client, though, and not from the text of the email. I looked at the email source. It has this line:
=09=09.mcnPreviewText{ =09=09=09display:none !important;
and later<!--[if !gte mso 9]><!----><span class=3D"mcnPreviewText" style=3D"= display:none;
(I understandgte mso
is checking if client is Microsoft Outlook.) – Josh Friedlander – 2019-08-06T20:54:29.143