How Connect Prioritizes Content Types

The CURR_EMAIL_CLIENT_ID on the customer master record determines the message content - HTML, text, MPA - a customer receives. The following is the order of precedence calculated by an algorithm to determine this value:
  1. CONTENT TYPE CODE has the highest priority. This value is most frequently updated based on a customer’s preference. For example, if a customer requests to receive text messages instead of HTML, Connect updates the CONTENT_TYPE_CODE  from 2 (HTML) to 1 (TEXT). This information is pulled from the customer database and is available only if your customer provided the information.

    The content type code always has the highest priority, except when the SM.PrioritizeDomain and the SM.PrioritizeAOL flags are set to True and the customer’s e-mail domain is one whose corresponding content type is already known. If this is the case, domain name becomes the highest priority and content type code becomes the second highest priority when determining CURR_EMAIL_CLIENT_ID.

    For example, when the SM.PrioritizeDomain is set to True and a customer’s domain is hotmail.com, this customer’s CURR_EMAIL_CLIENT_ID is set to receive defaultHTML because the Hotmail e-mail client is known to be HTML-capable. When the SM.PrioritizeAOL flag is set to True and the customer’s e-mail domain is aol.com, the aol.com domain name takes precedence when determining the CURR_EMAIL_CLIENT_ID.

  2. EMAIL_CLIENT_ID has the next highest priority. Assuming EMAIL_CLIENT_ID is not NULL: CURR_EMAIL_CLIENT_ID = EMAIL_CLIENT_ID
  3. DOMAIN NAME extension for the customer's ACTIVE_EMAIL_ADDRESS is the next highest priority; specifically, domains that are not captured in the first criteria of known domains and e-mail clients.

    If the customer's ACTIVE_EMAIL_ADDRESS (like @aol.com) domain matches the DOMAIN of any EMAIL_CLIENT_MASTER table row, the CURR_EMAIL_CLIENT_ID is set to the e-mail client ID in the EMAIL_CLIENT_MASTER row.

  4. HTML_DETECTED_IND has the next priority. Assuming HTML_DECTECTED_IND is set: CURR_EMAIL_CLIENT_ID is set to defaultHTML
  5. X_MAILER has the next priority. Assuming HTML_DECTECTED_IND is set: We can translate the X-Mailer string into an E-mail Client ID (see XMAILER_MASTER), then CURR_EMAIL_CLIENT_ID is the EMAIL_CLIENT_ID of the X-Mailer.

If none of these five provides the information needed, then set CURR_EMAIL_CLIENT_ID to Unknown and the customer receives either default Text or the Multi-part Alternative, based on the value in the CM.DefaultE-mailBodyContentType parameter.