I have a problem regarding apple's macOS email program.
I use PHPMailer for my website to send my users emails for confirmation, information, etc.
These emails are styled with css and look nice in most email programs I tested before. But apple's macOS email program seems to change the colours of everything the email contains.
The emails are mostly styled in black and white colors and those both colours just switch. The orange parts are shown quite fine.
I use a function in function.php to create the parts of the email which stays the same and just define the changing parts in the first script.
The css statements are intag - statements like the example below.
<p style = "color: white; background-colour: black;">xxx</p>
Like I said this looks like it should in most programs. Just in Apple's macOS email program ONLY IN DARK MODE!!! the Colors change. Is there any way to stop this?
Thanks for your help in advance!
Apple have changed their behaviour now, in that they'll default to light mode (no change) if there's an image.
Having said that, if this changes, all you need to do is let them know that you only support light mode. You do that by adding this <meta> tag in the <head> section:
<meta name="color-scheme" content="light only">
<meta name="supported-color-schemes" content="light only">
However, as of right now, Gmail and Outlook on Mac will ignore this, and you'll have the same 'problem' in those programs.
Instead of thinking of it as a problem, understand that is some people's personal preference: just like some people prefer to read their emails on mobile phones so you should be making emails responsive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With