• Resolved SPiNNdevs

    (@spinndevs)


    Hi,

    I experienced a strange problem with the WordPress Email Template Designer – WP HTML Mail – Plugin.
    When a mail is sent by WordPress (doesn`t matter what kind of mail, e.g. reset password) the mail gets displayed correctly in the mail client (in my example Outlook).
    When you forward this mail though the first few words of the initial mail body gets added to the new mail body which make it look obscure because the added text is not complete and just cut off mid-sentence.

    This doesn`t seem to be a problem with the mail client because if I deactivate the WordPress Email Template Designer – WP HTML Mail – Plugin the extra text is not displayed there.

    I would prefer not to add any text to a forwarded mail

    Do you have any clue what could cause this problem ?

    Kind Regards,
    SPiNNdevs

    • This topic was modified 3 years, 6 months ago by SPiNNdevs.
    • This topic was modified 3 years, 6 months ago by SPiNNdevs.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey @spinndevs
    This is the so called „preheader“
    We add the first words of the email content to the beginning of the message because these are the words shown as preview in most mail clients.
    Otherwise you‘d see the URL of the header image or other useless stuff.
    For this reason we accept the downside in forwarded messages in order to improve the actual message.
    Currently I’m on my mobile so I don’t want to check the code but as far as I can remember there’s a filter to modify the preheader.
    If you need help to find it just reply here and we’re going to post an example tomorrow.
    Best regards, Hannes

    Thread Starter SPiNNdevs

    (@spinndevs)

    Hy,

    I can see that you are wrapping the preheader in this HTML:
    <span style=”display:none;visibility:hidden;font-size:1px !important;”>….</span>

    Newsletter systems also use preheader and can achieve that preheaders are not visible, maybe we can use this as some inspiration to improve this?

    I saw something like this:
    <!–[if !gte mso 9]>
    <div style=”display:none;font-size:1px !important;color:transparent;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;visibility:hidden;mso-hide:all;”>….</div>
    <!–<![endif]–>

    In a first test of mine this seems to work with outlook!

    Wow, that’s a collection of all CSS possibilities to hide something 😉
    (( “mit Kanonen auf Spatzen…” sagt man bei uns ))
    Any idea why there’s a conditional comment for outlook versions?

    Thread Starter SPiNNdevs

    (@spinndevs)

    Yeah, seems to be necessary to work in all email client consistently…

    The conditional comment seems to do the trick for outlook that the preheader keeps being hidden on forwarding.

    We used this solution in some newsletter template as well my colleagues told me, so it should be save and work.

    Thread Starter SPiNNdevs

    (@spinndevs)

    @haet do you consider adding this update to your plugin?

    Thread Starter SPiNNdevs

    (@spinndevs)

    @haet any news on this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Forwarding Mail adds first words of the initial mail body’ is closed to new replies.