Page MenuHomePhabricator

New "Confirm your email" email looks broken on Fastmail
Closed, ResolvedPublic3 Estimated Story Points

Description

The new "Confirm your email" email looks broken on Fastmail's webmail interface.

image.png (396×861 px, 58 KB)

Link to email template for reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/6b0d18ca14d1814238cbf45d8695b67c67cd735e/resources/templates/ConfirmEmail/EmailCreated.mustache

Fastmail applies some transformations to the HTML and the CSS to sanitize it. Here's the relevant part of the page it actually serves: P86734

Notably, the <body id="mw-confirm-email"> element from the email is nowhere to be found, and as a result none of the styles targeting #mw-confirm-email apply.

We should probably avoid relying on having any attributes on the body element, or on its existence. Just add another wrapper inside if you need to target styles at it.

Event Timeline

KStoller-WMF moved this task from Product backlog to Needs Estimation on the Growth-Team board.
KStoller-WMF set the point value for this task to 3.Jan 26 2026, 5:02 PM

Change #1239099 had a related patch set uploaded (by Cyndywikime; author: Cyndywikime):

[mediawiki/core@master] Fix Fastmail rendering by moving styles off the body

https://gerrit.wikimedia.org/r/1239099

Change #1239099 merged by jenkins-bot:

[mediawiki/core@master] Fix Fastmail rendering by moving styles off the body

https://gerrit.wikimedia.org/r/1239099

@matmarex This should now be live on production. If you could test fastmail again and report back whether it has improved, then that would be great!

Based on my testing with a different provider which rendered the email similar to your screenshot, I would expect it to not be perfect yet, but much better than what we had till now.

Yep, looks good now!

image.png (580×857 px, 63 KB)

Great!

I'm closing this, I don't additional QA for this makes sense, and we'll have another look at these emails for upcoming related tasks anyway.