Skip to content

French email clients (Laposte & SFR) comment out <style> tags in <head> #161

@HowToDisappear-Dev

Description

@HowToDisappear-Dev

Email Client

  • Laposte
  • SFR

Operating System

  • Webmail & App
  • Operating systems: Windows, macOS, iOS, Android

Expected Result
The <style> tag placed in the <head> section should remain active and functional, allowing:

  • Media queries to work for responsive mobile layouts
  • :hover pseudo-selectors to apply CSS property changes
  • Interactive email features to function properly

Actual Result
The <style> tag is automatically commented out by the email client, rendering it completely inactive:

<!--<style>
  /* CSS rules */
</style>-->

This breaks:

  • Responsive design (mobile versions don't render correctly)
  • :hover pseudo-selector interactions
  • Any interactive email features

Steps to reproduce

  1. Create an HTML email with a <style> tag in the <head> section containing media queries or :hover rules
  2. Send the email to a Laposte.net or SFR email address
  3. Open the email in the respective webmail interface or mobile app
  4. Inspect the HTML source code
  5. Observe that the <style> tag has been commented out

Additional context
This is intentional behavior, not a bug. According to discussions with the Laposte team, this filtering is implemented as a security measure to prevent phishing attacks that could exploit kobold letters.

Multiple workaround techniques have been tested without success:

  • Duplicating the <style> tag
  • Adding HTML comments before the <style> tag
  • Various other encoding/obfuscation techniques

None of these workarounds bypass the email client's style tag filtering.

This issue significantly impacts the French market, forcing fallback to less optimal email layouts or alternative responsive techniques (Spongy code approaches).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Other clientsSamsung, SFR, Orange, T-Online, Onet, …

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions