Hello,
What is the proper way to add the following to all emails? We need this fix for compatibility with Outlook.
- We need to add an XML namespace to our <html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
3 Correct DPI for Images (PPI)
This piece of Microsoft Office code goes right before the closing </head> tag, and allows us to force the DPI setting that we want.
<!--[if gte mso 9]>
<xml>
<o😮fficeDocumentSettings>
<o:AllowPNG/>
<o😛ixelsPerInch>96</o😛ixelsPerInch>
</o😮fficeDocumentSettings>
</xml>
<![endif]-->
We tried to create a plugin, but is not working.
class plgAcymailingMyHeaders extends JPlugin
{
function acymailing_replaceusertags(&$email,&$user,$send = true){
$email->addCustomHeader( "<!--[if gte mso 9]><xml>
<o😮fficeDocumentSettings>
<o:AllowPNG/>
<o😛ixelsPerInch>96</o😛ixelsPerInch>
</o😮fficeDocumentSettings>
</xml><![endif]-->");
}
}
Please advise a way to add the 2 above Outlook compatibility to emails.
Thank You.