@wayne_min Thanks. So your probably is caused by one of your plugins not actually setting the email Content-Type
header when it’s attempting to send it. When the Content-Type
header is omitted, we try to assume the actual content type using this code.
In 1.5.2, the default Content-Type
assumption was always text/html
, but 1.5.3 or 1.5.4 changed that to try mime-type detection.
In a lot of cases, the content type will be assumed correctly, but if the email you’re trying to send is missing some of the characteristics of an HTML email (eg., <!DOCTYPE html>
, <html>
, …), the type checker will just assume text/plain
. If possible, please try wrapping your emails in a <html>...</html>
block to see if that fixes the issue.
If you can’t do that, some plugins will actually have an option allowing you to select the default content type to send emails as, typically plain text or HTML (or both).
I hope this helps! Please let me know if either of the solutions above work for you; if not, I will try to figure something else out ??
Thanks!