Dynamic Content not working with PoliteMail for the Desktop

When using Dynamic Content with PoliteMail for the desktop AND you are using the Modern Addin, you may encounter an error message:

This message is from PoliteMail to check your tags.  Even if the syntax looks correct, the next step is to turn off proofing in Outlook.

This only applies if you are using Outlook for the Windows desktop with Modern Addin; using the COM Addin should work as intended.

Why

If Outlook highlights what it thinks might be a spelling error and puts a red squiggly line under the word(s), Outlook adds a <span> tag to the html.  Because the Word Object model is not exposed, PoliteMail is unable to parse out those tags, resulting in your liquid syntax containing unwanted content that will cause it to not function.

The Fix

If your liquid syntax does not contain any content with any kind of auto spelling or grammar checking, and does not contain characters that might cause a problem (such as extra curly brackets or your quotes being converted to curly quotes), your message will send as planned.  However, in most cases you should turn off the proofing functionality in Outlook:

  1. Go to File > Options > Mail > Spelling and Autocorrect.
  2. Turn off 'Check Spelling as you Type' and 'Mark Grammar Errors as you Type'.